public static class RetryPolicy.RetryDecision extends Object
There is three possible decision:
| Modifier and Type | Class and Description | 
|---|---|
| static class  | RetryPolicy.RetryDecision.TypeThe 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. | 
| 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() | 
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()
Copyright © 2014. All Rights Reserved.