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 class
Client.ClientProperty
-
Method Summary
Modifier and Type Method Description void
close()
CloseClient
.Session
getSession()
GetSession
from pool or the new one.
-
Method Details
-
getSession
Session getSession()GetSession
from 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
close
on aClient
object that is already closed is a no-op.
-