Class GridQueryFailResponse
- java.lang.Object
-
- org.apache.ignite.internal.processors.query.h2.twostep.messages.GridQueryFailResponse
-
- All Implemented Interfaces:
Serializable,Message
public class GridQueryFailResponse extends Object implements Message
Error message.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static byteCANCELLED_BY_ORIGINATORCancelled by originator failure type.static byteGENERAL_ERRORGeneral error failure type.static byteRETRY_QUERYExecution error.-
Fields inherited from interface org.apache.ignite.plugin.extensions.communication.Message
DIRECT_TYPE_SIZE
-
-
Constructor Summary
Constructors Constructor Description GridQueryFailResponse()Default constructor.GridQueryFailResponse(long qryReqId, Throwable err)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description shortdirectType()Gets message type.Stringerror()bytefailCode()bytefieldsCount()Gets fields count.voidonAckReceived()Method called when ack message received.longqueryRequestId()booleanreadFrom(ByteBuffer buf, MessageReader reader)Reads this message from provided byte buffer.StringtoString()booleanwriteTo(ByteBuffer buf, MessageWriter writer)Writes this message to provided byte buffer.
-
-
-
Field Detail
-
GENERAL_ERROR
public static final byte GENERAL_ERROR
General error failure type.- See Also:
- Constant Field Values
-
CANCELLED_BY_ORIGINATOR
public static final byte CANCELLED_BY_ORIGINATOR
Cancelled by originator failure type.- See Also:
- Constant Field Values
-
RETRY_QUERY
public static final byte RETRY_QUERY
Execution error. Query should be retried.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GridQueryFailResponse
public GridQueryFailResponse()
Default constructor.
-
GridQueryFailResponse
public GridQueryFailResponse(long qryReqId, Throwable err)- Parameters:
qryReqId- Query request ID.err- Error.
-
-
Method Detail
-
queryRequestId
public long queryRequestId()
- Returns:
- Query request ID.
-
error
public String error()
- Returns:
- Error.
-
failCode
public byte failCode()
- Returns:
- Fail code.
-
onAckReceived
public void onAckReceived()
Method called when ack message received.- Specified by:
onAckReceivedin interfaceMessage
-
writeTo
public boolean writeTo(ByteBuffer buf, MessageWriter writer)
Writes this message to provided byte buffer.
-
readFrom
public boolean readFrom(ByteBuffer buf, MessageReader reader)
Reads this message from provided byte buffer.
-
directType
public short directType()
Gets message type.- Specified by:
directTypein interfaceMessage- Returns:
- Message type.
-
fieldsCount
public byte fieldsCount()
Gets fields count.- Specified by:
fieldsCountin interfaceMessage- Returns:
- Fields count.
-
-