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
AWritableByteChannelused 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:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Throws:
IOException
write
public int write(ByteBuffer src) throws IOException
- Specified by:
writein interfaceWritableByteChannel- Throws:
IOException