public class AsyncChannelWrapperNonSecure extends Object implements AsyncChannelWrapper
AsynchronousSocketChannel
. In some cases exceptions may be swallowed
to save them being swallowed by the calling code.Constructor and Description |
---|
AsyncChannelWrapperNonSecure(AsynchronousSocketChannel socketChannel) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Future<Void> |
handshake() |
Future<Integer> |
read(ByteBuffer dst) |
<B,A extends B> |
read(ByteBuffer dst,
A attachment,
CompletionHandler<Integer,B> handler) |
Future<Integer> |
write(ByteBuffer src) |
<B,A extends B> |
write(ByteBuffer[] srcs,
int offset,
int length,
long timeout,
TimeUnit unit,
A attachment,
CompletionHandler<Long,B> handler) |
public AsyncChannelWrapperNonSecure(AsynchronousSocketChannel socketChannel)
public Future<Integer> read(ByteBuffer dst)
read
in interface AsyncChannelWrapper
public <B,A extends B> void read(ByteBuffer dst, A attachment, CompletionHandler<Integer,B> handler)
read
in interface AsyncChannelWrapper
public Future<Integer> write(ByteBuffer src)
write
in interface AsyncChannelWrapper
public <B,A extends B> void write(ByteBuffer[] srcs, int offset, int length, long timeout, TimeUnit unit, A attachment, CompletionHandler<Long,B> handler)
write
in interface AsyncChannelWrapper
public void close()
close
in interface AsyncChannelWrapper
public Future<Void> handshake()
handshake
in interface AsyncChannelWrapper
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.