Package com.mysql.cj.xdevapi
Class ClientImpl
java.lang.Object
com.mysql.cj.xdevapi.ClientImpl
- All Implemented Interfaces:
Client
public class ClientImpl extends java.lang.Object implements Client
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classClientImpl.PooledXProtocolNested classes/interfaces inherited from interface com.mysql.cj.xdevapi.Client
Client.ClientProperty -
Constructor Summary
Constructors Constructor Description ClientImpl(java.lang.String url, java.lang.String clientPropsJson)ClientImpl(java.lang.String url, java.util.Properties clientProps) -
Method Summary
Modifier and Type Method Description voidclose()CloseClient.SessiongetSession()GetSessionfrom pool or the new one.
-
Constructor Details
-
ClientImpl
public ClientImpl(java.lang.String url, java.lang.String clientPropsJson) -
ClientImpl
public ClientImpl(java.lang.String url, java.util.Properties clientProps)
-
-
Method Details
-
getSession
Description copied from interface:ClientGetSessionfrom pool or the new one.- Specified by:
getSessionin interfaceClient- Returns:
Session
-
close
public void close()Description copied from interface: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.
-