public class UnsupportedAsynchronousSocketChannel extends AsynchronousSocketChannel
| 构造器和说明 |
|---|
UnsupportedAsynchronousSocketChannel(AsynchronousSocketChannel asynchronousSocketChannel) |
public UnsupportedAsynchronousSocketChannel(AsynchronousSocketChannel asynchronousSocketChannel)
public AsynchronousSocketChannel bind(SocketAddress local)
bind 在接口中 NetworkChannelbind 在类中 AsynchronousSocketChannelpublic <T> AsynchronousSocketChannel setOption(SocketOption<T> name, T value)
setOption 在接口中 NetworkChannelsetOption 在类中 AsynchronousSocketChannelpublic <T> T getOption(SocketOption<T> name)
public Set<SocketOption<?>> supportedOptions()
public AsynchronousSocketChannel shutdownInput()
shutdownInput 在类中 AsynchronousSocketChannelpublic AsynchronousSocketChannel shutdownOutput()
shutdownOutput 在类中 AsynchronousSocketChannelpublic 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[] src, 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.