APIdia Launch Partner
Top Fields Constructors Methods
sun.nio.ch

public Class LinuxAsynchronousChannelProvider

extends AsynchronousChannelProvider
Class Inheritance
Imports
java.nio.channels.*, java.nio.channels.spi.AsynchronousChannelProvider, java.util.concurrent.ExecutorService, .ThreadFactory, java.io.IOException

Field Summary

Modifier and TypeField and Description
private static volatile EPollPort

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private EPollPort
public AsynchronousChannelGroup
openAsynchronousChannelGroup(int nThreads, ThreadFactory factory)

Implements abstract java.nio.channels.spi.AsynchronousChannelProvider.openAsynchronousChannelGroup.

Constructs a new asynchronous channel group with a fixed thread pool.

public AsynchronousChannelGroup
openAsynchronousChannelGroup(ExecutorService executor, int initialSize)

Implements abstract java.nio.channels.spi.AsynchronousChannelProvider.openAsynchronousChannelGroup.

Constructs a new asynchronous channel group with the given thread pool.

public AsynchronousServerSocketChannel
public AsynchronousSocketChannel
private Port
Inherited from java.nio.channels.spi.AsynchronousChannelProvider:
provider

Field Detail

defaultPortback to summary
private static volatile EPollPort defaultPort

Constructor Detail

LinuxAsynchronousChannelProviderback to summary
public LinuxAsynchronousChannelProvider()

Method Detail

defaultEventPortback to summary
private EPollPort defaultEventPort() throws IOException
openAsynchronousChannelGroupback to summary
public AsynchronousChannelGroup openAsynchronousChannelGroup(int nThreads, ThreadFactory factory) throws IOException

Implements abstract java.nio.channels.spi.AsynchronousChannelProvider.openAsynchronousChannelGroup.

Doc from java.nio.channels.spi.AsynchronousChannelProvider.openAsynchronousChannelGroup.

Constructs a new asynchronous channel group with a fixed thread pool.

Annotations
@Override
Exceptions
IOException:
If an I/O error occurs
openAsynchronousChannelGroupback to summary
public AsynchronousChannelGroup openAsynchronousChannelGroup(ExecutorService executor, int initialSize) throws IOException

Implements abstract java.nio.channels.spi.AsynchronousChannelProvider.openAsynchronousChannelGroup.

Doc from java.nio.channels.spi.AsynchronousChannelProvider.openAsynchronousChannelGroup.

Constructs a new asynchronous channel group with the given thread pool.

Annotations
@Override
Exceptions
IOException:
If an I/O error occurs
openAsynchronousServerSocketChannelback to summary
public AsynchronousServerSocketChannel openAsynchronousServerSocketChannel(AsynchronousChannelGroup group) throws IOException

Implements abstract java.nio.channels.spi.AsynchronousChannelProvider.openAsynchronousServerSocketChannel.

Doc from java.nio.channels.spi.AsynchronousChannelProvider.openAsynchronousServerSocketChannel.

Opens an asynchronous server-socket channel.

Annotations
@Override
Exceptions
IOException:
If an I/O error occurs
openAsynchronousSocketChannelback to summary
public AsynchronousSocketChannel openAsynchronousSocketChannel(AsynchronousChannelGroup group) throws IOException

Implements abstract java.nio.channels.spi.AsynchronousChannelProvider.openAsynchronousSocketChannel.

Doc from java.nio.channels.spi.AsynchronousChannelProvider.openAsynchronousSocketChannel.

Opens an asynchronous socket channel.

Annotations
@Override
Exceptions
IOException:
If an I/O error occurs
toPortback to summary
private Port toPort(AsynchronousChannelGroup group) throws IOException