|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.datastax.driver.core.policies.RetryPolicy.RetryDecision
public static class RetryPolicy.RetryDecision
A retry decision to adopt on a Cassandra exception (read/write timeout or unavailable exception).
There is three possible decision:
Nested Class Summary | |
---|---|
static class |
RetryPolicy.RetryDecision.Type
The type of retry decisions. |
Method Summary | |
---|---|
ConsistencyLevel |
getRetryConsistencyLevel()
The consistency level for a retry decision. |
RetryPolicy.RetryDecision.Type |
getType()
The type of this retry decision. |
static RetryPolicy.RetryDecision |
ignore()
Creates an IGNORE retry decision. |
static RetryPolicy.RetryDecision |
rethrow()
Creates a RETHROW retry decision. |
static RetryPolicy.RetryDecision |
retry(ConsistencyLevel consistency)
Creates a RETRY retry decision using the provided consistency level. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public RetryPolicy.RetryDecision.Type getType()
public ConsistencyLevel getRetryConsistencyLevel()
null
if this retry decision is an IGNORE
or a RETHROW
.public static RetryPolicy.RetryDecision rethrow()
public static RetryPolicy.RetryDecision retry(ConsistencyLevel consistency)
consistency
- the consistency level to use for the retry.
consistency
retry decision.public static RetryPolicy.RetryDecision ignore()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |