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 class
ClientImpl.PooledXProtocol
Nested 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 void
close()
CloseClient
.Session
getSession()
GetSession
from 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:Client
GetSession
from pool or the new one.- Specified by:
getSession
in interfaceClient
- Returns:
Session
-
close
public void close()Description copied from interface:Client
CloseClient
. Closes all Sessions it has created, and destroys the managed pool.Calling the method
close
on aClient
object that is already closed is a no-op.
-