Package herddb.proto
Class PduCodec.ErrorResponse
- java.lang.Object
-
- herddb.proto.PduCodec.ErrorResponse
-
-
Field Summary
Fields Modifier and Type Field Description static byteFLAG_DUPLICATEPRIMARY_KEY_ERRORstatic byteFLAG_MISSING_PREPARED_STATEMENTstatic byteFLAG_NONEstatic byteFLAG_NOT_LEADER
-
Constructor Summary
Constructors Constructor Description ErrorResponse()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringreadError(Pdu pdu)static booleanreadIsMissingPreparedStatementError(Pdu pdu)static booleanreadIsNotLeader(Pdu pdu)static booleanreadIsSqlIntegrityViolationError(Pdu pdu)static io.netty.buffer.ByteBufwrite(long messageId, String error)static io.netty.buffer.ByteBufwrite(long messageId, Throwable error)static io.netty.buffer.ByteBufwrite(long messageId, Throwable error, boolean notLeader, boolean missingPreparedStatementError)static io.netty.buffer.ByteBufwriteMissingPreparedStatementError(long messageId, String message)static io.netty.buffer.ByteBufwriteNotLeaderError(long messageId, String message)static io.netty.buffer.ByteBufwriteNotLeaderError(long messageId, Throwable message)static io.netty.buffer.ByteBufwriteSqlIntegrityConstraintsViolation(long messageId, Throwable message)
-
-
-
Field Detail
-
FLAG_NONE
public static final byte FLAG_NONE
- See Also:
- Constant Field Values
-
FLAG_NOT_LEADER
public static final byte FLAG_NOT_LEADER
- See Also:
- Constant Field Values
-
FLAG_MISSING_PREPARED_STATEMENT
public static final byte FLAG_MISSING_PREPARED_STATEMENT
- See Also:
- Constant Field Values
-
FLAG_DUPLICATEPRIMARY_KEY_ERROR
public static final byte FLAG_DUPLICATEPRIMARY_KEY_ERROR
- See Also:
- Constant Field Values
-
-
Method Detail
-
write
public static io.netty.buffer.ByteBuf write(long messageId, String error)
-
writeNotLeaderError
public static io.netty.buffer.ByteBuf writeNotLeaderError(long messageId, String message)
-
writeMissingPreparedStatementError
public static io.netty.buffer.ByteBuf writeMissingPreparedStatementError(long messageId, String message)
-
writeNotLeaderError
public static io.netty.buffer.ByteBuf writeNotLeaderError(long messageId, Throwable message)
-
writeSqlIntegrityConstraintsViolation
public static io.netty.buffer.ByteBuf writeSqlIntegrityConstraintsViolation(long messageId, Throwable message)
-
write
public static io.netty.buffer.ByteBuf write(long messageId, Throwable error, boolean notLeader, boolean missingPreparedStatementError)
-
write
public static io.netty.buffer.ByteBuf write(long messageId, Throwable error)
-
readIsNotLeader
public static boolean readIsNotLeader(Pdu pdu)
-
readIsMissingPreparedStatementError
public static boolean readIsMissingPreparedStatementError(Pdu pdu)
-
readIsSqlIntegrityViolationError
public static boolean readIsSqlIntegrityViolationError(Pdu pdu)
-
-