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
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ByteChannel
open(int timeout)
Open a connection to the target server with the specified timeout.
Method Detail
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