类 ClientImpl
- java.lang.Object
-
- com.mysql.cj.xdevapi.ClientImpl
-
- 所有已实现的接口:
Protocol.ProtocolEventListener,Client
public class ClientImpl extends Object implements Client, Protocol.ProtocolEventListener
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 classClientImpl.PooledXProtocol-
从接口继承的嵌套类/接口 com.mysql.cj.xdevapi.Client
Client.ClientProperty
-
从接口继承的嵌套类/接口 com.mysql.cj.protocol.Protocol.ProtocolEventListener
Protocol.ProtocolEventListener.EventType
-
-
构造器概要
构造器 构造器 说明 ClientImpl(String url, String clientPropsJson)ClientImpl(String url, Properties clientProps)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidclose()CloseClient.SessiongetSession()GetSessionfrom pool or the new one.voidhandleEvent(Protocol.ProtocolEventListener.EventType type, Object info, Throwable reason)
-
-
-
构造器详细资料
-
ClientImpl
public ClientImpl(String url, Properties clientProps)
-
-
方法详细资料
-
getSession
public Session getSession()
从接口复制的说明:ClientGetSessionfrom pool or the new one.- 指定者:
getSession在接口中Client- 返回:
Session
-
close
public void close()
从接口复制的说明:ClientCloseClient. Closes all Sessions it has created, and destroys the managed pool.Calling the method
closeon aClientobject that is already closed is a no-op.
-
handleEvent
public void handleEvent(Protocol.ProtocolEventListener.EventType type, Object info, Throwable reason)
- 指定者:
handleEvent在接口中Protocol.ProtocolEventListener
-
-