public interface RedoableClientMessage
extends com.singlestore.jdbc.message.ClientMessage
| Modifier and Type | Method and Description |
|---|---|
default int |
encode(Writer writer,
com.singlestore.jdbc.client.Context context,
Prepare newPrepareResult)
Encode command to packet
|
default void |
ensureReplayable(com.singlestore.jdbc.client.Context context)
Ensure that command can be replayed
|
default int |
reEncode(Writer writer,
com.singlestore.jdbc.client.Context context,
Prepare newPrepareResult)
re-encode command to packet
|
default void |
saveParameters()
Save parameters of command that can be re-executed
|
default void saveParameters()
default void ensureReplayable(com.singlestore.jdbc.client.Context context)
throws IOException,
SQLException
context - connection contextIOException - If socket error occursSQLException - for other type of issuedefault int encode(Writer writer, com.singlestore.jdbc.client.Context context, Prepare newPrepareResult) throws IOException, SQLException
writer - socket writercontext - connection contextnewPrepareResult - new prepare result if prepare has been changedIOException - if any socket error is issuedSQLException - if any other kind of error occurs during encodingdefault int reEncode(Writer writer, com.singlestore.jdbc.client.Context context, Prepare newPrepareResult) throws IOException, SQLException
writer - socket writercontext - connection contextnewPrepareResult - new prepare result if prepare has been changedIOException - if any socket error is issuedSQLException - if any other kind of error occurs during encodingCopyright © 2025 SingleStore. All rights reserved.