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()
    Close Client.
    Session getSession()
    Get Session from pool or the new one.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public Session getSession()
      Description copied from interface: Client
      Get Session from pool or the new one.
      Specified by:
      getSession in interface Client
      Returns:
      Session
    • close

      public void close()
      Description copied from interface: Client
      Close Client. Closes all Sessions it has created, and destroys the managed pool.

      Calling the method close on a Client object that is already closed is a no-op.

      Specified by:
      close in interface Client