| Modifier and Type | Class and Description |
|---|---|
| public static interface | ServerSessionStateController.
The object containing server session changes collected from the latest query execution. |
| public static class | ServerSessionStateController.
A single server session change record. |
| public static interface |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int |
| Modifier and Type | Method and Description |
|---|---|
| public default void | addSessionStateChangesListener(ServerSessionStateController.
SessionStateChangesListener object.Add the |
| public default ServerSessionStateController. | Returns: ServerSessionStateChanges object.Get the object containing server session changes collected from the latest query execution. |
| public default void | |
| public default void | setSessionStateChanges(ServerSessionStateController.
ServerSessionStateChanges object.Set the object containing server session changes collected from the latest query execution. |
| SESSION_TRACK_GTIDS | back to summary |
|---|---|
| public static final int SESSION_TRACK_GTIDS | |
| SESSION_TRACK_SCHEMA | back to summary |
|---|---|
| public static final int SESSION_TRACK_SCHEMA | |
| SESSION_TRACK_STATE_CHANGE | back to summary |
|---|---|
| public static final int SESSION_TRACK_STATE_CHANGE | |
| SESSION_TRACK_SYSTEM_VARIABLES | back to summary |
|---|---|
| public static final int SESSION_TRACK_SYSTEM_VARIABLES | |
| SESSION_TRACK_TRANSACTION_CHARACTERISTICS | back to summary |
|---|---|
| public static final int SESSION_TRACK_TRANSACTION_CHARACTERISTICS | |
| SESSION_TRACK_TRANSACTION_STATE | back to summary |
|---|---|
| public static final int SESSION_TRACK_TRANSACTION_STATE | |
| addSessionStateChangesListener | back to summary |
|---|---|
| public default void addSessionStateChangesListener(ServerSessionStateController. Add the
| |
| getSessionStateChanges | back to summary |
|---|---|
| public default ServerSessionStateController. Get the object containing server session changes collected from the latest query execution.
Please note that the driver could issue some queries internally. With that there is no guarantee that all session changes are reflected in the
| |
| removeSessionStateChangesListener | back to summary |
|---|---|
| public default void removeSessionStateChangesListener(ServerSessionStateController. Remove
| |
| setSessionStateChanges | back to summary |
|---|---|
| public default void setSessionStateChanges(ServerSessionStateController. Set the object containing server session changes collected from the latest query execution. Used internally.
| |
Driver is getting these changes when connection property trackSessionState=true and server supports session tracking.
| Modifier and Type | Method and Description |
|---|---|
| public List |
| getSessionStateChangesList | back to summary |
|---|---|
| public List | |
The server messages about session changes are parsed according to their known types:
SESSION_TRACK_SYSTEM_VARIABLES - two values, the system variable name and it's new value;SESSION_TRACK_SCHEMA - single value, the new schema name;SESSION_TRACK_STATE_CHANGE - single value, "1" or "0";SESSION_TRACK_GTIDS - single value, list of GTIDs as reported by server;SESSION_TRACK_TRANSACTION_CHARACTERISTICS - single value, transaction characteristics statement;SESSION_TRACK_TRANSACTION_STATE - single value, transaction state record.For the unknown change type the raw payload is written into the single value.
See more details in the server documentation.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ServerSessionStateController. | |
| public int | |
| public List |
| SessionStateChange | back to summary |
|---|---|
| public SessionStateChange(int type) | |
| addValue | back to summary |
|---|---|
| public ServerSessionStateController. | |
| getType | back to summary |
|---|---|
| public int getType() | |
| getValues | back to summary |
|---|---|
| public List | |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| handleSessionStateChanges | back to summary |
|---|---|
| public void handleSessionStateChanges(ServerSessionStateController. | |