public class WriteFailure extends Error
| Modifier and Type | Class and Description |
|---|---|
static class |
WriteFailure.SubCodec |
Error.Codec, Error.SingleMessageSubCodec| Modifier and Type | Field and Description |
|---|---|
int |
blockFor
The number of replicas whose acknowledgment is required to achieve
consistencyLevel. |
int |
consistencyLevel
The consistency level of the query that triggered the exception.
|
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 acknowledged the request.
|
String |
writeType
The type of the write that timed out.
|
isResponse, opcode| Constructor and Description |
|---|
WriteFailure(String message,
int consistencyLevel,
int received,
int blockFor,
int numFailures,
Map<InetAddress,Integer> reasonMap,
String writeType) |
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 String writeType
public WriteFailure(String message, int consistencyLevel, int received, int blockFor, int numFailures, Map<InetAddress,Integer> reasonMap, String writeType)
Copyright © 2017–2020. All rights reserved.