Package org.aoju.bus.socket.channel
Class AsynchronousChannelProvider
java.lang.Object
java.nio.channels.spi.AsynchronousChannelProvider
org.aoju.bus.socket.channel.AsynchronousChannelProvider
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionopenAsynchronousChannelGroup(int nThreads, ThreadFactory threadFactory) openAsynchronousChannelGroup(ExecutorService executor, int initialSize) Methods inherited from class java.nio.channels.spi.AsynchronousChannelProvider
provider
-
Constructor Details
-
AsynchronousChannelProvider
public AsynchronousChannelProvider()
-
-
Method Details
-
openAsynchronousChannelGroup
public AsynchronousChannelGroup openAsynchronousChannelGroup(int nThreads, ThreadFactory threadFactory) throws IOException - Specified by:
openAsynchronousChannelGroupin classAsynchronousChannelProvider- Throws:
IOException
-
openAsynchronousChannelGroup
public AsynchronousChannelGroup openAsynchronousChannelGroup(ExecutorService executor, int initialSize) throws IOException - Specified by:
openAsynchronousChannelGroupin classAsynchronousChannelProvider- Throws:
IOException
-
openAsynchronousServerSocketChannel
public AsynchronousServerSocketChannel openAsynchronousServerSocketChannel(AsynchronousChannelGroup group) throws IOException - Specified by:
openAsynchronousServerSocketChannelin classAsynchronousChannelProvider- Throws:
IOException
-
openAsynchronousSocketChannel
public AsynchronousSocketChannel openAsynchronousSocketChannel(AsynchronousChannelGroup group) throws IOException - Specified by:
openAsynchronousSocketChannelin classAsynchronousChannelProvider- Throws:
IOException
-