Interface RedoableClientMessage

    • Method Detail

      • saveParameters

        default void saveParameters()
        Save parameters of command that can be re-executed
      • ensureReplayable

        default void ensureReplayable​(Context context)
                               throws java.io.IOException,
                                      java.sql.SQLException
        Ensure that command can be replayed
        Parameters:
        context - connection context
        Throws:
        java.io.IOException - If socket error occurs
        java.sql.SQLException - for other type of issue
      • encode

        default int encode​(Writer writer,
                           Context context,
                           Prepare newPrepareResult)
                    throws java.io.IOException,
                           java.sql.SQLException
        Encode command to packet
        Parameters:
        writer - socket writer
        context - connection context
        newPrepareResult - new prepare result if prepare has been changed
        Returns:
        number of send command
        Throws:
        java.io.IOException - if any socket error is issued
        java.sql.SQLException - if any other kind of error occurs during encoding
      • reEncode

        default int reEncode​(Writer writer,
                             Context context,
                             Prepare newPrepareResult)
                      throws java.io.IOException,
                             java.sql.SQLException
        re-encode command to packet
        Parameters:
        writer - socket writer
        context - connection context
        newPrepareResult - new prepare result if prepare has been changed
        Returns:
        number of send command
        Throws:
        java.io.IOException - if any socket error is issued
        java.sql.SQLException - if any other kind of error occurs during encoding