Package org.mariadb.jdbc.message.client
Interface RedoableClientMessage
-
- All Superinterfaces:
org.mariadb.jdbc.message.ClientMessage
- All Known Subinterfaces:
RedoableWithPrepareClientMessage
- All Known Implementing Classes:
BulkExecutePacket,ChangeDbPacket,ExecutePacket,QueryPacket,QueryWithParametersPacket
public interface RedoableClientMessage extends org.mariadb.jdbc.message.ClientMessageClient message that can be replayed
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default intencode(Writer writer, org.mariadb.jdbc.client.Context context, Prepare newPrepareResult)Encode command to packetdefault voidensureReplayable(org.mariadb.jdbc.client.Context context)Ensure that command can be replayeddefault intreEncode(Writer writer, org.mariadb.jdbc.client.Context context, Prepare newPrepareResult)re-encode command to packetdefault voidsaveParameters()Save parameters of command that can be re-executed
-
-
-
Method Detail
-
saveParameters
default void saveParameters()
Save parameters of command that can be re-executed
-
ensureReplayable
default void ensureReplayable(org.mariadb.jdbc.client.Context context) throws IOException, SQLExceptionEnsure that command can be replayed- Parameters:
context- connection context- Throws:
IOException- If socket error occursSQLException- for other type of issue
-
encode
default int encode(Writer writer, org.mariadb.jdbc.client.Context context, Prepare newPrepareResult) throws IOException, SQLException
Encode command to packet- Parameters:
writer- socket writercontext- connection contextnewPrepareResult- new prepare result if prepare has been changed- Returns:
- number of send command
- Throws:
IOException- if any socket error is issuedSQLException- if any other kind of error occurs during encoding
-
reEncode
default int reEncode(Writer writer, org.mariadb.jdbc.client.Context context, Prepare newPrepareResult) throws IOException, SQLException
re-encode command to packet- Parameters:
writer- socket writercontext- connection contextnewPrepareResult- new prepare result if prepare has been changed- Returns:
- number of send command
- Throws:
IOException- if any socket error is issuedSQLException- if any other kind of error occurs during encoding
-
-