public class GridQueryFailResponse extends Object implements Message
Modifier and Type | Field and Description |
---|---|
static byte |
CANCELLED_BY_ORIGINATOR
Cancelled by originator failure type.
|
static byte |
GENERAL_ERROR
General error failure type.
|
static byte |
RETRY_QUERY
Execution error.
|
DIRECT_TYPE_SIZE
Constructor and Description |
---|
GridQueryFailResponse()
Default constructor.
|
GridQueryFailResponse(long qryReqId,
Throwable err) |
Modifier and Type | Method and Description |
---|---|
short |
directType()
Gets message type.
|
String |
error() |
byte |
failCode() |
byte |
fieldsCount()
Gets fields count.
|
void |
onAckReceived()
Method called when ack message received.
|
long |
queryRequestId() |
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
String |
toString() |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
public static final byte GENERAL_ERROR
public static final byte CANCELLED_BY_ORIGINATOR
public static final byte RETRY_QUERY
public GridQueryFailResponse()
public GridQueryFailResponse(long qryReqId, Throwable err)
qryReqId
- Query request ID.err
- Error.public long queryRequestId()
public String error()
public byte failCode()
public void onAckReceived()
onAckReceived
in interface Message
public boolean writeTo(ByteBuffer buf, MessageWriter writer)
public boolean readFrom(ByteBuffer buf, MessageReader reader)
public short directType()
directType
in interface Message
public byte fieldsCount()
fieldsCount
in interface Message
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021