Constructor
new RetryPolicy()
Base and default RetryPolicy.
Determines what to do when the drivers runs into an specific Cassandra exception
Members
(static) retryDecision :Object
Retry decision of the retry policy.
Type:
- Object
Methods
onReadTimeout(requestInfo, consistency, received, blockFor, isDataPresent) → {DecisionInfo}
Determines what to do when the drivers gets an ReadTimeoutException from a Cassandra node
Parameters:
Name | Type | Description |
---|---|---|
requestInfo |
Object | |
consistency |
||
received |
Number | |
blockFor |
||
isDataPresent |
Boolean |
Returns:
- Type
- DecisionInfo
onUnavailable(requestInfo, consistency, required, alive) → {DecisionInfo}
Determines what to do when the drivers gets an UnavailableException from a Cassandra node
Parameters:
Name | Type | Description |
---|---|---|
requestInfo |
Object | |
consistency |
||
required |
Number | |
alive |
Number |
Returns:
- Type
- DecisionInfo
onWriteTimeout(requestInfo, consistency, received, blockFor, writeType) → {DecisionInfo}
Determines what to do when the drivers gets an WriteTimeoutException from a Cassandra node
Parameters:
Name | Type | Description |
---|---|---|
requestInfo |
Object | |
consistency |
||
received |
Number | |
blockFor |
||
writeType |
String |
Returns:
- Type
- DecisionInfo
rethrowResult() → {Object}
Returns:
- Type
- Object
retryResult() → {Object}
Returns:
- Type
- Object