Package org.mariadb.jdbc.client.context
Class RedoContext
- java.lang.Object
-
- org.mariadb.jdbc.client.context.BaseContext
-
- org.mariadb.jdbc.client.context.RedoContext
-
- All Implemented Interfaces:
Context
public class RedoContext extends BaseContext
Redo addition to Context
-
-
Field Summary
Fields Modifier and Type Field Description private TransactionSaver
transactionSaver
-
Fields inherited from class org.mariadb.jdbc.client.context.BaseContext
serverStatus
-
-
Constructor Summary
Constructors Constructor Description RedoContext(HostAddress hostAddress, InitialHandshakePacket handshake, long clientCapabilities, Configuration conf, ExceptionFactory exceptionFactory, PrepareCache prepareCache)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TransactionSaver
getTransactionSaver()
Get transaction saver cachevoid
saveRedo(ClientMessage msg)
Save client messagevoid
saveRedo(ClientMessage[] msgs)
Save client messagesvoid
setServerStatus(int serverStatus)
Set server status-
Methods inherited from class org.mariadb.jdbc.client.context.BaseContext
addStateFlag, canSkipMeta, canUseTransactionIsolation, getAutoIncrement, getCharset, getColumnDecoderFunction, getConf, getConnectionTimeZone, getDatabase, getDefaultCalendar, getExceptionFactory, getPrepareCacheCmd, getRedirectUrl, getSeed, getServerStatus, getStateFlag, getThreadId, getTransactionIsolationLevel, getVersion, getWarning, hasClientCapability, hasServerCapability, isEofDeprecated, permitPipeline, putPrepareCacheCmd, resetPrepareCache, resetStateFlag, setAutoIncrement, setCharset, setConnectionTimeZone, setDatabase, setRedirectUrl, setThreadId, setTransactionIsolationLevel, setTreadsConnected, setWarning
-
-
-
-
Field Detail
-
transactionSaver
private final TransactionSaver transactionSaver
-
-
Constructor Detail
-
RedoContext
public RedoContext(HostAddress hostAddress, InitialHandshakePacket handshake, long clientCapabilities, Configuration conf, ExceptionFactory exceptionFactory, PrepareCache prepareCache)
Constructor- Parameters:
hostAddress
- host addresshandshake
- server handshakeclientCapabilities
- client capabilitiesconf
- configurationexceptionFactory
- connection exception factoryprepareCache
- LRU prepare cache
-
-
Method Detail
-
setServerStatus
public void setServerStatus(int serverStatus)
Set server status- Specified by:
setServerStatus
in interfaceContext
- Overrides:
setServerStatus
in classBaseContext
- Parameters:
serverStatus
- server status
-
saveRedo
public void saveRedo(ClientMessage msg)
Save client message- Parameters:
msg
- client message
-
saveRedo
public void saveRedo(ClientMessage[] msgs)
Save client messages- Parameters:
msgs
- client messages
-
getTransactionSaver
public TransactionSaver getTransactionSaver()
Get transaction saver cache- Returns:
- transaction saver cache
-
-