public class UnsupportedAsynchronousSocketChannel extends AsynchronousSocketChannel
| Constructor and Description |
|---|
UnsupportedAsynchronousSocketChannel(AsynchronousSocketChannel asynchronousSocketChannel) |
public UnsupportedAsynchronousSocketChannel(AsynchronousSocketChannel asynchronousSocketChannel)
public AsynchronousSocketChannel bind(SocketAddress local)
bind in interface NetworkChannelbind in class AsynchronousSocketChannelpublic <T> AsynchronousSocketChannel setOption(SocketOption<T> name, T value)
setOption in interface NetworkChannelsetOption in class AsynchronousSocketChannelpublic <T> T getOption(SocketOption<T> name)
public Set<SocketOption<?>> supportedOptions()
public AsynchronousSocketChannel shutdownInput()
shutdownInput in class AsynchronousSocketChannelpublic AsynchronousSocketChannel shutdownOutput()
shutdownOutput in class AsynchronousSocketChannelpublic SocketAddress getRemoteAddress() throws IOException
getRemoteAddress in class AsynchronousSocketChannelIOExceptionpublic <A> void connect(SocketAddress remote, A attachment, CompletionHandler<Void,? super A> handler)
connect in class AsynchronousSocketChannelpublic Future<Void> connect(SocketAddress remote)
connect in class AsynchronousSocketChannelpublic <A> void read(ByteBuffer dst, long timeout, TimeUnit unit, A attachment, CompletionHandler<Integer,? super A> handler)
read in class AsynchronousSocketChannelpublic Future<Integer> read(ByteBuffer dst)
read in interface AsynchronousByteChannelread in class AsynchronousSocketChannelpublic <A> void read(ByteBuffer[] dsts, int offset, int length, long timeout, TimeUnit unit, A attachment, CompletionHandler<Long,? super A> handler)
read in class AsynchronousSocketChannelpublic <A> void write(ByteBuffer src, long timeout, TimeUnit unit, A attachment, CompletionHandler<Integer,? super A> handler)
write in class AsynchronousSocketChannelpublic Future<Integer> write(ByteBuffer src)
write in interface AsynchronousByteChannelwrite in class AsynchronousSocketChannelpublic <A> void write(ByteBuffer[] srcs, int offset, int length, long timeout, TimeUnit unit, A attachment, CompletionHandler<Long,? super A> handler)
write in class AsynchronousSocketChannelpublic SocketAddress getLocalAddress() throws IOException
getLocalAddress in interface NetworkChannelgetLocalAddress in class AsynchronousSocketChannelIOExceptionpublic boolean isOpen()
public void close()
throws IOException
IOExceptionCopyright © 2021. All rights reserved.