类 NativeServerSessionStateController
- java.lang.Object
-
- com.mysql.cj.protocol.a.NativeServerSessionStateController
-
- 所有已实现的接口:
ServerSessionStateController
public class NativeServerSessionStateController extends Object implements ServerSessionStateController
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classNativeServerSessionStateController.NativeServerSessionStateChanges
-
构造器概要
构造器 构造器 说明 NativeServerSessionStateController()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaddSessionStateChangesListener(ServerSessionStateController.SessionStateChangesListener l)Add theServerSessionStateController.SessionStateChangesListenerthat will processServerSessionStateController.ServerSessionStateChangeson it's arrival.NativeServerSessionStateController.NativeServerSessionStateChangesgetSessionStateChanges()Get the object containing server session changes collected from the latest query execution.voidremoveSessionStateChangesListener(ServerSessionStateController.SessionStateChangesListener listener)voidsetSessionStateChanges(ServerSessionStateController.ServerSessionStateChanges changes)Set the object containing server session changes collected from the latest query execution.
-
-
-
方法详细资料
-
setSessionStateChanges
public void setSessionStateChanges(ServerSessionStateController.ServerSessionStateChanges changes)
从接口复制的说明:ServerSessionStateControllerSet the object containing server session changes collected from the latest query execution. Used internally.- 指定者:
setSessionStateChanges在接口中ServerSessionStateController- 参数:
changes-ServerSessionStateController.ServerSessionStateChangesobject.
-
getSessionStateChanges
public NativeServerSessionStateController.NativeServerSessionStateChanges getSessionStateChanges()
从接口复制的说明:ServerSessionStateControllerGet 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
ServerSessionStateController.ServerSessionStateChangesobject after the recent user's query. If this is an issue, aServerSessionStateController.SessionStateChangesListenercan be added viaServerSessionStateController.addSessionStateChangesListener(SessionStateChangesListener)to catch all session changes.
-
addSessionStateChangesListener
public void addSessionStateChangesListener(ServerSessionStateController.SessionStateChangesListener l)
从接口复制的说明:ServerSessionStateControllerAdd theServerSessionStateController.SessionStateChangesListenerthat will processServerSessionStateController.ServerSessionStateChangeson it's arrival.
-
removeSessionStateChangesListener
public void removeSessionStateChangesListener(ServerSessionStateController.SessionStateChangesListener listener)
从接口复制的说明:ServerSessionStateController- 指定者:
removeSessionStateChangesListener在接口中ServerSessionStateController- 参数:
listener-ServerSessionStateController.SessionStateChangesListenerobject.
-
-