|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.scale7.cassandra.pelops.OperandPolicy
public class OperandPolicy
General policy configuration.
| Constructor Summary | |
|---|---|
OperandPolicy()
|
|
OperandPolicy(int maxOpRetries,
boolean deleteIfNull)
|
|
OperandPolicy(int maxOpRetries,
boolean deleteIfNull,
IExceptionTranslator exceptionTranslator)
|
|
| Method Summary | |
|---|---|
IExceptionTranslator |
getExceptionTranslator()
The translater used to convert checked Thirft/Cassandra exceptions into unchecked PelopsExceptions. |
int |
getMaxOpRetries()
|
boolean |
isDeleteIfNull()
Dictates if pelops should issue deletes when it detects null values being written in a mutation batch. |
void |
setDeleteIfNull(boolean deleteIfNull)
Dictates if pelops should issue deletes when it detects null values being written in a mutation batch. |
void |
setExceptionTranslator(IExceptionTranslator exceptionTranslator)
The translater used to convert checked Thirft/Cassandra exceptions into unchecked PelopsExceptions. |
void |
setMaxOpRetries(int maxOpRetries)
Max number of times to retry an operation before giving up. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OperandPolicy()
public OperandPolicy(int maxOpRetries,
boolean deleteIfNull)
public OperandPolicy(int maxOpRetries,
boolean deleteIfNull,
IExceptionTranslator exceptionTranslator)
| Method Detail |
|---|
public int getMaxOpRetries()
public void setMaxOpRetries(int maxOpRetries)
maxOpRetries - the valuepublic boolean isDeleteIfNull()
public void setDeleteIfNull(boolean deleteIfNull)
deleteIfNull - true if deletes should be issued by defaultpublic IExceptionTranslator getExceptionTranslator()
public void setExceptionTranslator(IExceptionTranslator exceptionTranslator)
Note: by default IExceptionTranslator.ExceptionTranslator is used.
exceptionTranslator - the translator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||