public class PeripheralChannelGroup extends AsynchronousChannelGroup
| Constructor and Description |
|---|
PeripheralChannelGroup(ExecutorService executor)
Creates a new PeripheralChannelGroup.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChannel(Closeable channel)
Adds a channel to the group.
|
boolean |
awaitTermination(long timeout,
TimeUnit unit) |
ExecutorService |
executor()
Returns the executor associated with the group.
|
boolean |
isShutdown() |
boolean |
isTerminated() |
void |
shutdown() |
void |
shutdownNow() |
provider, withCachedThreadPool, withFixedThreadPool, withThreadPoolpublic PeripheralChannelGroup(ExecutorService executor)
executor - the executor used to schedule taskspublic boolean isShutdown()
isShutdown in class AsynchronousChannelGrouppublic boolean isTerminated()
isTerminated in class AsynchronousChannelGrouppublic void shutdown()
shutdown in class AsynchronousChannelGrouppublic void shutdownNow()
throws IOException
shutdownNow in class AsynchronousChannelGroupIOExceptionpublic boolean awaitTermination(long timeout,
TimeUnit unit)
throws InterruptedException
awaitTermination in class AsynchronousChannelGroupInterruptedExceptionpublic void addChannel(Closeable channel)
channel - the channelNullPointerException - if channel is nullpublic ExecutorService executor()
Copyright © 2011. All Rights Reserved.