| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| private static class | |
| private static class | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final IoFuture. | |
| private static final IoFuture. | |
| private static final IoFuture. | |
| private static final IoFuture. | |
| private static final Executor | |
| private static final IoUtils. | |
| private static final Cancellable | |
| private static final Closeable | |
| private static final Executor | |
| private static final IoUtils. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static IoFuture. | Returns: a notifier which will close its attachmentGet a notifier that closes the attachment. |
| public static void | |
| public static void | awaitAllInterruptibly(IoFuture<?>...
the futures to wait for futures)Wait for all the futures to complete. |
| public static < the type of the original result I, the type of the wrapped result O> IoFuture | |
| public static < the channel type T extends Channel> IoFuture. | Returns: the notifierGet the notifier that invokes the channel listener given as an attachment. |
| public static Cancellable | Returns: the cancellablethe resource c)A cancellable which closes the given resource on cancel. |
| public static IoFuture. | Returns: a notifier which will close the result of the operation (if successful)Get a notifier that closes the result. |
| public static Executor | |
| public static <T> Future | |
| public static < the channel type T> IoFuture. | Returns: the notifierGet a notifier which forwards the result to another |
| public static < the channel type T extends Channel> ChannelSource | Returns: the retrying channel sourcethe delegate channel source delegate, final int the number of times to retry maxTries)A channel source which tries to acquire a channel from a delegate channel source the given number of times before giving up. |
| public static Random | |
| public static Cancellable | |
| public static Closeable | |
| public static Executor | |
| public static < the result type T> IoFuture. | |
| public static < the future type (not used) T> IoFuture. | Returns: a notifier which will run the given commandthe notifier type runnable)Get a notifier that runs the supplied action. |
| public static void | safeClose(final AutoCloseable
the resource to close resource)Close a resource, logging an error if an error occurs. |
| public static void | |
| public static void | |
| public static void | |
| public static void | safeClose(final DatagramSocket
the resource to close resource)Close a resource, logging an error if an error occurs. |
| public static void | |
| public static void | safeClose(final ServerSocket
the resource to close resource)Close a resource, logging an error if an error occurs. |
| public static void | |
| public static void | |
| public static void | |
| public static void | safeShutdownReads(final SuspendableReadChannel
the channel channel)Safely shutdown reads on the given channel. |
| public static long | Returns: the number of bytes actually transferred (possibly 0)the source channel to read bytes from source, final long the number of bytes to transfer (must be >= count, final ByteBuffer 0L)the buffer to transfer through (must not be throughBuffer, final WritableByteChannel null)the sink channel to write bytes to sink)Platform-independent channel-to-channel transfer method. |