| Package | Description |
|---|---|
| java.nio.channels |
Defines channels, which represent connections to entities that are capable of performing I/O operations, such as files and sockets; defines selectors, for multiplexed, non-blocking I/O operations.
|
| java.nio.channels.spi |
Service-provider classes for the
java.nio.channels package.
|
| Modifier and Type | Method and Description |
|---|---|
static AsynchronousChannelGroup |
AsynchronousChannelGroup.withCachedThreadPool(ExecutorService
Creates an asynchronous channel group with a given thread pool that creates new threads as needed.
|
static AsynchronousChannelGroup |
AsynchronousChannelGroup.withFixedThreadPool(int nThreads, ThreadFactory
Creates an asynchronous channel group with a fixed thread pool.
|
static AsynchronousChannelGroup |
AsynchronousChannelGroup.withThreadPool(ExecutorService
Creates an asynchronous channel group with a given thread pool.
|
| Modifier and Type | Method and Description |
|---|---|
static AsynchronousServerSocketChannel |
AsynchronousServerSocketChannel.open(AsynchronousChannelGroup
Opens an asynchronous server-socket channel.
|
static AsynchronousSocketChannel |
AsynchronousSocketChannel.open(AsynchronousChannelGroup
Opens an asynchronous socket channel.
|
| Modifier and Type | Method and Description |
|---|---|
abstract AsynchronousChannelGroup |
AsynchronousChannelProvider.openAsynchronousChannelGroup(ExecutorService
Constructs a new asynchronous channel group with the given thread pool.
|
abstract AsynchronousChannelGroup |
AsynchronousChannelProvider.openAsynchronousChannelGroup(int nThreads, ThreadFactory
Constructs a new asynchronous channel group with a fixed thread pool.
|
| Modifier and Type | Method and Description |
|---|---|
abstract AsynchronousServerSocketChannel |
AsynchronousChannelProvider.openAsynchronousServerSocketChannel(AsynchronousChannelGroup
Opens an asynchronous server-socket channel.
|
abstract AsynchronousSocketChannel |
AsynchronousChannelProvider.openAsynchronousSocketChannel(AsynchronousChannelGroup
Opens an asynchronous socket channel.
|