public class ReadFailure extends Error
| Modifier and Type | Class and Description |
|---|---|
static class |
ReadFailure.SubCodec |
Error.Codec, Error.SingleMessageSubCodec| Modifier and Type | Field and Description |
|---|---|
int |
blockFor
The number of replicas whose response is required to achieve
consistencyLevel. |
int |
consistencyLevel
The consistency level of the query that triggered the exception.
|
boolean |
dataPresent
Whether the replica that was asked for data responded.
|
int |
numFailures
The number of nodes that experienced a failure while executing the request.
|
Map<InetAddress,Integer> |
reasonMap
A map of endpoint to failure reason codes.
|
int |
received
The number of nodes having answered the request.
|
isResponse, opcode| Constructor and Description |
|---|
ReadFailure(String message,
int consistencyLevel,
int received,
int blockFor,
int numFailures,
Map<InetAddress,Integer> reasonMap,
boolean dataPresent) |
public final int consistencyLevel
public final int received
public final int blockFor
consistencyLevel.public final int numFailures
public final Map<InetAddress,Integer> reasonMap
public final boolean dataPresent
public ReadFailure(String message, int consistencyLevel, int received, int blockFor, int numFailures, Map<InetAddress,Integer> reasonMap, boolean dataPresent)
Copyright © 2017–2019. All rights reserved.