Package org.apache.tomcat.websocket
Interface AsyncChannelWrapper
- All Known Implementing Classes:
AsyncChannelWrapperNonSecure,AsyncChannelWrapperSecure
public interface AsyncChannelWrapper
This is a wrapper for a
AsynchronousSocketChannel that limits the methods available thereby
simplifying the process of implementing SSL/TLS support since there are fewer methods to intercept.-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()read(ByteBuffer dst) <B,A extends B>
voidread(ByteBuffer dst, A attachment, CompletionHandler<Integer, B> handler) write(ByteBuffer src) <B,A extends B>
voidwrite(ByteBuffer[] srcs, int offset, int length, long timeout, TimeUnit unit, A attachment, CompletionHandler<Long, B> handler)
-
Method Details
-
read
-
read
-
write
-
write
<B,A extends B> void write(ByteBuffer[] srcs, int offset, int length, long timeout, TimeUnit unit, A attachment, CompletionHandler<Long, B> handler) -
close
void close() -
handshake
- Throws:
SSLException
-
getLocalAddress
- Throws:
IOException
-