public static class RetryPolicy.RetryDecision extends Object
There is three possible decision:
Modifier and Type | Class and Description |
---|---|
static class |
RetryPolicy.RetryDecision.Type
The type of retry decisions.
|
Modifier and Type | Method and Description |
---|---|
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.
|
boolean |
isRetryCurrent()
Whether the retry policy uses the same host for 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.
|
String |
toString() |
static RetryPolicy.RetryDecision |
tryNextHost(ConsistencyLevel retryCL)
Creates a RETRY retry decision and indicates to retry on another host
using the provided consistency level.
|
public RetryPolicy.RetryDecision.Type getType()
public ConsistencyLevel getRetryConsistencyLevel()
null
if this retry decision is an IGNORE
or a RETHROW
.public boolean isRetryCurrent()
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()
public static RetryPolicy.RetryDecision tryNextHost(ConsistencyLevel retryCL)
Copyright © 2012–2015. All rights reserved.