public interface ServerSessionStateController
Modifier and Type | Interface and Description |
---|---|
static interface |
ServerSessionStateController.ServerSessionStateChanges
The object containing server session changes collected from the latest query execution.
|
static class |
ServerSessionStateController.SessionStateChange
A single server session change record.
|
static interface |
ServerSessionStateController.SessionStateChangesListener |
Modifier and Type | Field and Description |
---|---|
static int |
SESSION_TRACK_GTIDS |
static int |
SESSION_TRACK_SCHEMA |
static int |
SESSION_TRACK_STATE_CHANGE |
static int |
SESSION_TRACK_SYSTEM_VARIABLES |
static int |
SESSION_TRACK_TRANSACTION_CHARACTERISTICS |
static int |
SESSION_TRACK_TRANSACTION_STATE |
Modifier and Type | Method and Description |
---|---|
default void |
addSessionStateChangesListener(ServerSessionStateController.SessionStateChangesListener l)
Add the
ServerSessionStateController.SessionStateChangesListener that will process ServerSessionStateController.ServerSessionStateChanges on it's arrival. |
default ServerSessionStateController.ServerSessionStateChanges |
getSessionStateChanges()
Get the object containing server session changes collected from the latest query execution.
|
default void |
removeSessionStateChangesListener(ServerSessionStateController.SessionStateChangesListener l)
|
default void |
setSessionStateChanges(ServerSessionStateController.ServerSessionStateChanges changes)
Set the object containing server session changes collected from the latest query execution.
|
static final int SESSION_TRACK_SYSTEM_VARIABLES
static final int SESSION_TRACK_SCHEMA
static final int SESSION_TRACK_STATE_CHANGE
static final int SESSION_TRACK_GTIDS
static final int SESSION_TRACK_TRANSACTION_CHARACTERISTICS
static final int SESSION_TRACK_TRANSACTION_STATE
default void setSessionStateChanges(ServerSessionStateController.ServerSessionStateChanges changes)
changes
- ServerSessionStateController.ServerSessionStateChanges
object.default ServerSessionStateController.ServerSessionStateChanges getSessionStateChanges()
Please note that the driver could issue some queries internally. With that there is no guarantee that all session changes are reflected in the
ServerSessionStateController.ServerSessionStateChanges
object after the recent user's query. If this is an issue, a ServerSessionStateController.SessionStateChangesListener
can be added via
addSessionStateChangesListener(SessionStateChangesListener)
to catch all session changes.
ServerSessionStateController.ServerSessionStateChanges
object.default void addSessionStateChangesListener(ServerSessionStateController.SessionStateChangesListener l)
ServerSessionStateController.SessionStateChangesListener
that will process ServerSessionStateController.ServerSessionStateChanges
on it's arrival.l
- ServerSessionStateController.SessionStateChangesListener
object.default void removeSessionStateChangesListener(ServerSessionStateController.SessionStateChangesListener l)
l
- ServerSessionStateController.SessionStateChangesListener
object.