Package org.aoju.bus.socket.channel
Class EnhanceAsynchronousChannelProvider
java.lang.Object
java.nio.channels.spi.AsynchronousChannelProvider
org.aoju.bus.socket.channel.EnhanceAsynchronousChannelProvider
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int读监听信号static final int可读信号 -
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
-
Field Details
-
READ_MONITOR_SIGNAL
public static final int READ_MONITOR_SIGNAL读监听信号- See Also:
-
READABLE_SIGNAL
public static final int READABLE_SIGNAL可读信号- See Also:
-
-
Constructor Details
-
EnhanceAsynchronousChannelProvider
public EnhanceAsynchronousChannelProvider(boolean lowMemory) -
EnhanceAsynchronousChannelProvider
public EnhanceAsynchronousChannelProvider()
-
-
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
-