Package herddb.proto

Class PduCodec.ErrorResponse

  • Enclosing class:
    PduCodec

    public static class PduCodec.ErrorResponse
    extends Object
    • Constructor Detail

      • ErrorResponse

        public ErrorResponse()
    • 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)
      • readError

        public static String readError​(Pdu pdu)
      • readIsNotLeader

        public static boolean readIsNotLeader​(Pdu pdu)
      • readIsMissingPreparedStatementError

        public static boolean readIsMissingPreparedStatementError​(Pdu pdu)
      • readIsSqlIntegrityViolationError

        public static boolean readIsSqlIntegrityViolationError​(Pdu pdu)