Interface ClientSession

All Superinterfaces:
Session
All Known Implementing Classes:
ClientNetworkSession

public interface ClientSession extends Session
A network client session.
  • Method Details

    • connect

      default void connect()
      Connects this session to its host and port.
    • connect

      void connect(boolean wait)
      Connects this session to its host and port.
      Parameters:
      wait - Whether to wait for the connection to be established before returning.
    • getProxy

      @Nullable ProxyInfo getProxy()
      Get the proxy used by this session.
      Returns:
      The proxy used by this session.