public class ReadTimeout extends Error
| Modifier and Type | Class and Description |
|---|---|
static class |
ReadTimeout.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 |
received
The number of nodes having answered the request.
|
isResponse, opcode| Constructor and Description |
|---|
ReadTimeout(String message,
int consistencyLevel,
int received,
int blockFor,
boolean dataPresent) |
public final int consistencyLevel
public final int received
public final int blockFor
consistencyLevel.
It is possible to have received >= blockFor if data_present is false. Also
in the (unlikely) case where consistencyLevel is achieved but the coordinator node
times out while waiting for read-repair acknowledgement.
public final boolean dataPresent
public ReadTimeout(String message, int consistencyLevel, int received, int blockFor, boolean dataPresent)
Copyright © 2017–2019. All rights reserved.