Class HttpTunnelConnection.TunnelChannel
- java.lang.Object
- org.springframework.boot.devtools.tunnel.client.HttpTunnelConnection.TunnelChannel
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Channel
,WritableByteChannel
- Enclosing class:
- HttpTunnelConnection
protected class HttpTunnelConnection.TunnelChannel extends Object implements WritableByteChannel
AWritableByteChannel
used to transfer traffic.
Constructor Summary
Constructors Constructor Description TunnelChannel(WritableByteChannel incomingChannel, Closeable closeable)
Constructor Detail
TunnelChannel
public TunnelChannel(WritableByteChannel incomingChannel, Closeable closeable)
Method Detail
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceChannel
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
write
public int write(ByteBuffer src) throws IOException
- Specified by:
write
in interfaceWritableByteChannel
- Throws:
IOException