Interface TargetServerConnection

All Known Implementing Classes:
SocketTargetServerConnection
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface TargetServerConnection
Manages the connection to the ultimate tunnel target server.
Since:
1.3.0
Author:
Phillip Webb
  • Method Summary

    Modifier and Type
    Method
    Description
    open(int timeout)
    Open a connection to the target server with the specified timeout.
  • Method Details

    • open

      ByteChannel open(int timeout) throws IOException
      Open a connection to the target server with the specified timeout.
      Parameters:
      timeout - the read timeout
      Returns:
      a ByteChannel providing read/write access to the server
      Throws:
      IOException - in case of I/O errors