Package com.mysql.cj.xdevapi
Interface Client
- All Known Implementing Classes:
ClientImpl
public interface Client
X DevAPI class encapsulating a Session pooling functionality.
The Client object is obtained via ClientFactory.getClient(String, java.util.Properties) or ClientFactory.getClient(String, String) methods.
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classClient.ClientProperty -
Method Summary
Modifier and Type Method Description voidclose()CloseClient.SessiongetSession()GetSessionfrom pool or the new one.
-
Method Details
-
getSession
Session getSession()GetSessionfrom pool or the new one.- Returns:
Session
-
close
void close()CloseClient. Closes all Sessions it has created, and destroys the managed pool.Calling the method
closeon aClientobject that is already closed is a no-op.
-