public class AsynchronousSocketChannelProxy extends AsynchronousSocketChannel
| 限定符和类型 | 字段和说明 |
|---|---|
protected AsynchronousSocketChannel |
asynchronousSocketChannel |
| 构造器和说明 |
|---|
AsynchronousSocketChannelProxy(AsynchronousSocketChannel asynchronousSocketChannel) |
protected final AsynchronousSocketChannel asynchronousSocketChannel
public AsynchronousSocketChannelProxy(AsynchronousSocketChannel asynchronousSocketChannel)
public AsynchronousSocketChannel bind(SocketAddress local) throws IOException
bind 在接口中 NetworkChannelbind 在类中 AsynchronousSocketChannelIOExceptionpublic <T> AsynchronousSocketChannel setOption(SocketOption<T> name, T value) throws IOException
setOption 在接口中 NetworkChannelsetOption 在类中 AsynchronousSocketChannelIOExceptionpublic <T> T getOption(SocketOption<T> name) throws IOException
IOExceptionpublic Set<SocketOption<?>> supportedOptions()
public AsynchronousSocketChannel shutdownInput() throws IOException
shutdownInput 在类中 AsynchronousSocketChannelIOExceptionpublic AsynchronousSocketChannel shutdownOutput() throws IOException
shutdownOutput 在类中 AsynchronousSocketChannelIOExceptionpublic SocketAddress getRemoteAddress() throws IOException
getRemoteAddress 在类中 AsynchronousSocketChannelIOExceptionpublic <A> void connect(SocketAddress remote, A attachment, CompletionHandler<Void,? super A> handler)
connect 在类中 AsynchronousSocketChannelpublic Future<Void> connect(SocketAddress remote)
connect 在类中 AsynchronousSocketChannelpublic <A> void read(ByteBuffer dst, long timeout, TimeUnit unit, A attachment, CompletionHandler<Integer,? super A> handler)
read 在类中 AsynchronousSocketChannelpublic Future<Integer> read(ByteBuffer dst)
read 在接口中 AsynchronousByteChannelread 在类中 AsynchronousSocketChannelpublic <A> void read(ByteBuffer[] dsts, int offset, int length, long timeout, TimeUnit unit, A attachment, CompletionHandler<Long,? super A> handler)
read 在类中 AsynchronousSocketChannelpublic <A> void write(ByteBuffer src, long timeout, TimeUnit unit, A attachment, CompletionHandler<Integer,? super A> handler)
write 在类中 AsynchronousSocketChannelpublic Future<Integer> write(ByteBuffer src)
write 在接口中 AsynchronousByteChannelwrite 在类中 AsynchronousSocketChannelpublic <A> void write(ByteBuffer[] srcs, int offset, int length, long timeout, TimeUnit unit, A attachment, CompletionHandler<Long,? super A> handler)
write 在类中 AsynchronousSocketChannelpublic SocketAddress getLocalAddress() throws IOException
getLocalAddress 在接口中 NetworkChannelgetLocalAddress 在类中 AsynchronousSocketChannelIOExceptionpublic boolean isOpen()
public void close()
throws IOException
IOExceptionCopyright © 2023. All rights reserved.