Package | Description |
---|---|
io.netty.bootstrap |
The helper classes with fluent API which enable an easy implementation of
typical client side and server side channel initialization.
|
io.netty.channel |
The core channel API which is asynchronous and event-driven abstraction of
various transports such as a
NIO Channel.
|
io.netty.channel.group |
A channel registry which helps a user maintain the list of open
Channel s and perform bulk operations on them. |
io.netty.channel.pool |
Implementations and API for
Channel pools. |
io.netty.handler.ssl |
SSL ·
TLS implementation based on
SSLEngine |
io.netty.util.concurrent |
Utility classes for concurrent / async tasks.
|
io.netty.util.internal |
Internal-use-only utilities which is not allowed to be used
outside Netty.
|
Modifier and Type | Class and Description |
---|---|
private static class |
AbstractBootstrap.PendingRegistrationPromise |
Modifier and Type | Interface and Description |
---|---|
interface |
ChannelProgressivePromise
Special
ChannelPromise which will be notified once the associated bytes is transferring. |
interface |
ChannelPromise
Special
ChannelFuture which is writable. |
Modifier and Type | Class and Description |
---|---|
(package private) static class |
AbstractChannel.CloseFuture |
class |
DefaultChannelProgressivePromise
The default
ChannelProgressivePromise implementation. |
class |
DefaultChannelPromise
The default
ChannelPromise implementation. |
(package private) class |
VoidChannelPromise |
Modifier and Type | Field and Description |
---|---|
private Promise<?> |
ThreadPerChannelEventLoopGroup.terminationFuture |
Modifier and Type | Class and Description |
---|---|
(package private) class |
DefaultChannelGroupFuture
The default
ChannelGroupFuture implementation. |
Modifier and Type | Field and Description |
---|---|
private Promise<Channel> |
FixedChannelPool.AcquireListener.originalPromise |
(package private) Promise<Channel> |
FixedChannelPool.AcquireTask.promise |
Modifier and Type | Method and Description |
---|---|
Future<Channel> |
ChannelPool.acquire(Promise<Channel> promise)
Acquire a
Channel from this ChannelPool . |
Future<Channel> |
SimpleChannelPool.acquire(Promise<Channel> promise) |
Future<Channel> |
FixedChannelPool.acquire(Promise<Channel> promise) |
private void |
FixedChannelPool.acquire0(Promise<Channel> promise) |
private Future<Channel> |
SimpleChannelPool.acquireHealthyFromPoolOrNew(Promise<Channel> promise)
Tries to retrieve healthy channel from the pool if any or creates a new channel otherwise.
|
private static void |
SimpleChannelPool.closeAndFail(Channel channel,
java.lang.Throwable cause,
Promise<?> promise) |
private void |
SimpleChannelPool.doHealthCheck(Channel ch,
Promise<Channel> promise) |
private void |
SimpleChannelPool.doHealthCheckOnRelease(Channel channel,
Promise<java.lang.Void> promise) |
private void |
SimpleChannelPool.doReleaseChannel(Channel channel,
Promise<java.lang.Void> promise) |
private void |
SimpleChannelPool.notifyConnect(ChannelFuture future,
Promise<Channel> promise) |
private void |
SimpleChannelPool.notifyHealthCheck(Future<java.lang.Boolean> future,
Channel ch,
Promise<Channel> promise) |
Future<java.lang.Void> |
ChannelPool.release(Channel channel,
Promise<java.lang.Void> promise)
Release a
Channel back to this ChannelPool . |
Future<java.lang.Void> |
SimpleChannelPool.release(Channel channel,
Promise<java.lang.Void> promise) |
Future<java.lang.Void> |
FixedChannelPool.release(Channel channel,
Promise<java.lang.Void> promise) |
private void |
SimpleChannelPool.releaseAndOffer(Channel channel,
Promise<java.lang.Void> promise) |
private void |
SimpleChannelPool.releaseAndOfferIfHealthy(Channel channel,
Promise<java.lang.Void> promise,
Future<java.lang.Boolean> future)
Adds the channel back to the pool only if the channel is healty.
|
Constructor and Description |
---|
AcquireListener(Promise<Channel> originalPromise) |
AcquireTask(Promise<Channel> promise) |
Modifier and Type | Class and Description |
---|---|
private class |
SslHandler.LazyChannelPromise |
Modifier and Type | Field and Description |
---|---|
private Promise<Channel> |
SslHandler.handshakePromise |
Modifier and Type | Method and Description |
---|---|
private void |
SslHandler.handshake(Promise<Channel> newHandshakePromise)
Performs TLS (re)negotiation.
|
Future<Channel> |
SslHandler.renegotiate(Promise<Channel> promise)
Performs TLS renegotiation.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ProgressivePromise<V>
Special
ProgressiveFuture which is writable. |
Modifier and Type | Class and Description |
---|---|
class |
DefaultProgressivePromise<V> |
class |
DefaultPromise<V> |
(package private) static class |
ImmediateEventExecutor.ImmediateProgressivePromise<V> |
(package private) static class |
ImmediateEventExecutor.ImmediatePromise<V> |
(package private) class |
PromiseTask<V> |
(package private) class |
ScheduledFutureTask<V> |
private static class |
UnorderedThreadPoolEventExecutor.RunnableScheduledFutureTask<V> |
Modifier and Type | Field and Description |
---|---|
private Promise<?> |
PromiseAggregator.aggregatePromise
Deprecated.
|
private Promise<java.lang.Void> |
PromiseCombiner.aggregatePromise |
private Promise<? super T> |
UnaryPromiseNotifier.promise |
private Promise<? super V>[] |
PromiseNotifier.promises |
private Promise<?> |
UnorderedThreadPoolEventExecutor.terminationFuture |
private Promise<?> |
SingleThreadEventExecutor.terminationFuture |
private Promise<?> |
MultithreadEventExecutorGroup.terminationFuture |
Modifier and Type | Field and Description |
---|---|
private java.util.Set<Promise<V>> |
PromiseAggregator.pendingPromises
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Promise<V> |
DefaultPromise.addListener(GenericFutureListener<? extends Future<? super V>> listener) |
Promise<V> |
Promise.addListener(GenericFutureListener<? extends Future<? super V>> listener) |
Promise<V> |
DefaultPromise.addListeners(GenericFutureListener<? extends Future<? super V>>... listeners) |
Promise<V> |
Promise.addListeners(GenericFutureListener<? extends Future<? super V>>... listeners) |
Promise<V> |
DefaultPromise.await() |
Promise<V> |
Promise.await() |
Promise<V> |
DefaultPromise.awaitUninterruptibly() |
Promise<V> |
Promise.awaitUninterruptibly() |
<V> Promise<V> |
EventExecutor.newPromise()
Return a new
Promise . |
<V> Promise<V> |
AbstractEventExecutor.newPromise() |
<V> Promise<V> |
UnorderedThreadPoolEventExecutor.newPromise() |
<V> Promise<V> |
ImmediateEventExecutor.newPromise() |
Promise<V> |
DefaultPromise.removeListener(GenericFutureListener<? extends Future<? super V>> listener) |
Promise<V> |
Promise.removeListener(GenericFutureListener<? extends Future<? super V>> listener) |
Promise<V> |
DefaultPromise.removeListeners(GenericFutureListener<? extends Future<? super V>>... listeners) |
Promise<V> |
Promise.removeListeners(GenericFutureListener<? extends Future<? super V>>... listeners) |
Promise<V> |
PromiseTask.setFailure(java.lang.Throwable cause) |
Promise<V> |
DefaultPromise.setFailure(java.lang.Throwable cause) |
Promise<V> |
Promise.setFailure(java.lang.Throwable cause)
Marks this future as a failure and notifies all
listeners.
|
protected Promise<V> |
PromiseTask.setFailureInternal(java.lang.Throwable cause) |
Promise<V> |
PromiseTask.setSuccess(V result) |
Promise<V> |
DefaultPromise.setSuccess(V result) |
Promise<V> |
Promise.setSuccess(V result)
Marks this future as a success and notifies all
listeners.
|
protected Promise<V> |
PromiseTask.setSuccessInternal(V result) |
Promise<V> |
DefaultPromise.sync() |
Promise<V> |
Promise.sync() |
Promise<V> |
DefaultPromise.syncUninterruptibly() |
Promise<V> |
Promise.syncUninterruptibly() |
Modifier and Type | Method and Description |
---|---|
void |
PromiseCombiner.add(Promise promise) |
PromiseAggregator<V,F> |
PromiseAggregator.add(Promise<V>... promises)
Deprecated.
Add the given
Promise s to the aggregator. |
void |
PromiseCombiner.addAll(Promise... promises) |
static <X> void |
UnaryPromiseNotifier.cascadeTo(Future<X> completedFuture,
Promise<? super X> promise) |
void |
PromiseCombiner.finish(Promise<java.lang.Void> aggregatePromise) |
Constructor and Description |
---|
PromiseAggregator(Promise<java.lang.Void> aggregatePromise)
Deprecated.
|
PromiseAggregator(Promise<java.lang.Void> aggregatePromise,
boolean failPending)
Deprecated.
Creates a new instance.
|
PromiseNotifier(boolean logNotifyFailure,
Promise<? super V>... promises)
Create a new instance.
|
PromiseNotifier(Promise<? super V>... promises)
Create a new instance.
|
UnaryPromiseNotifier(Promise<? super T> promise) |
Modifier and Type | Field and Description |
---|---|
private Promise<java.lang.Void> |
PendingWrite.promise |
Modifier and Type | Method and Description |
---|---|
Promise<java.lang.Void> |
PendingWrite.promise() |
Promise<java.lang.Void> |
PendingWrite.recycleAndGet()
Recycle this instance and return the
Promise . |
Modifier and Type | Method and Description |
---|---|
static PendingWrite |
PendingWrite.newInstance(java.lang.Object msg,
Promise<java.lang.Void> promise)
Create a new empty
RecyclableArrayList instance |
static void |
PromiseNotificationUtil.tryCancel(Promise<?> p,
InternalLogger logger)
|
static void |
PromiseNotificationUtil.tryFailure(Promise<?> p,
java.lang.Throwable cause,
InternalLogger logger)
|
static <V> void |
PromiseNotificationUtil.trySuccess(Promise<? super V> p,
V result,
InternalLogger logger)
|