Interface TunnelConnection
- All Known Implementing Classes:
HttpTunnelConnection
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Interface used to manage socket tunnel connections.
- Since:
- 1.3.0
- Author:
- Phillip Webb
-
Method Summary
Modifier and TypeMethodDescriptionopen
(WritableByteChannel incomingChannel, Closeable closeable) Open the tunnel connection.
-
Method Details
-
open
Open the tunnel connection.- Parameters:
incomingChannel
- aWritableByteChannel
that should be used to write any incoming data received from the remote servercloseable
- a closeable to call when the channel is closed- Returns:
- a
WritableByteChannel
that should be used to send any outgoing data destined for the remote server - Throws:
Exception
- in case of errors
-