public class NativeServerSessionStateController extends java.lang.Object implements ServerSessionStateController
| Modifier and Type | Class and Description |
|---|---|
static class |
NativeServerSessionStateController.NativeServerSessionStateChanges |
ServerSessionStateController.ServerSessionStateChanges, ServerSessionStateController.SessionStateChange, ServerSessionStateController.SessionStateChangesListenerSESSION_TRACK_GTIDS, SESSION_TRACK_SCHEMA, SESSION_TRACK_STATE_CHANGE, SESSION_TRACK_SYSTEM_VARIABLES, SESSION_TRACK_TRANSACTION_CHARACTERISTICS, SESSION_TRACK_TRANSACTION_STATE| Constructor and Description |
|---|
NativeServerSessionStateController() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSessionStateChangesListener(ServerSessionStateController.SessionStateChangesListener l)
Add the
ServerSessionStateController.SessionStateChangesListener that will process ServerSessionStateController.ServerSessionStateChanges on it's arrival. |
NativeServerSessionStateController.NativeServerSessionStateChanges |
getSessionStateChanges()
Get the object containing server session changes collected from the latest query execution.
|
void |
removeSessionStateChangesListener(ServerSessionStateController.SessionStateChangesListener listener)
|
void |
setSessionStateChanges(ServerSessionStateController.ServerSessionStateChanges changes)
Set the object containing server session changes collected from the latest query execution.
|
public void setSessionStateChanges(ServerSessionStateController.ServerSessionStateChanges changes)
ServerSessionStateControllersetSessionStateChanges in interface ServerSessionStateControllerchanges - ServerSessionStateController.ServerSessionStateChanges object.public NativeServerSessionStateController.NativeServerSessionStateChanges getSessionStateChanges()
ServerSessionStateController
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
ServerSessionStateController.addSessionStateChangesListener(SessionStateChangesListener) to catch all session changes.
getSessionStateChanges in interface ServerSessionStateControllerServerSessionStateController.ServerSessionStateChanges object.public void addSessionStateChangesListener(ServerSessionStateController.SessionStateChangesListener l)
ServerSessionStateControllerServerSessionStateController.SessionStateChangesListener that will process ServerSessionStateController.ServerSessionStateChanges on it's arrival.addSessionStateChangesListener in interface ServerSessionStateControllerl - ServerSessionStateController.SessionStateChangesListener object.public void removeSessionStateChangesListener(ServerSessionStateController.SessionStateChangesListener listener)
ServerSessionStateControllerremoveSessionStateChangesListener in interface ServerSessionStateControllerlistener - ServerSessionStateController.SessionStateChangesListener object.