类的用途
java.nio.channels.AsynchronousSocketChannel
-
AsynchronousSocketChannel 在 java.nio.channels 中的用法
修饰符和类型方法描述abstract AsynchronousSocketChannelAsynchronousSocketChannel.bind(SocketAddress local) static AsynchronousSocketChannelAsynchronousSocketChannel.open()打开异步套接字通道。static AsynchronousSocketChannelAsynchronousSocketChannel.open(AsynchronousChannelGroup group) 打开异步套接字通道。abstract <T> AsynchronousSocketChannelAsynchronousSocketChannel.setOption(SocketOption<T> name, T value) abstract AsynchronousSocketChannelAsynchronousSocketChannel.shutdownInput()在不关闭通道的情况下关闭读取连接。abstract AsynchronousSocketChannelAsynchronousSocketChannel.shutdownOutput()在不关闭通道的情况下关闭写入连接。返回类型中包含 AsynchronousSocketChannel 类型参数的 java.nio.channels 中的方法修饰符和类型方法描述abstract Future<AsynchronousSocketChannel>AsynchronousServerSocketChannel.accept()接受连接。java.nio.channels 中的方法参数,类型参数为 AsynchronousSocketChannel修饰符和类型方法描述abstract <A> voidAsynchronousServerSocketChannel.accept(A attachment, CompletionHandler<AsynchronousSocketChannel, ? super A> handler) 接受连接。 -
AsynchronousSocketChannel 在 java.nio.channels.spi 中的用法
修饰符和类型方法描述abstract AsynchronousSocketChannelAsynchronousChannelProvider.openAsynchronousSocketChannel(AsynchronousChannelGroup group) 打开异步套接字通道。