Package io.netty.bootstrap
Class AbstractBootstrap.PendingRegistrationPromise
java.lang.Object
io.netty.util.concurrent.AbstractFuture<Void>
io.netty.util.concurrent.DefaultPromise<Void>
io.netty.channel.DefaultChannelPromise
io.netty.bootstrap.AbstractBootstrap.PendingRegistrationPromise
- All Implemented Interfaces:
ChannelFlushPromiseNotifier.FlushCheckpoint
,ChannelFuture
,ChannelPromise
,Future<Void>
,Promise<Void>
,Future<Void>
- Enclosing class:
AbstractBootstrap<B extends AbstractBootstrap<B,
C>, C extends Channel>
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State
-
Field Summary
FieldsFields inherited from class io.netty.util.concurrent.DefaultPromise
PROPERTY_MAX_LISTENER_STACK_DEPTH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected EventExecutor
executor()
Get the executor used to notify listeners when this promise is complete.(package private) void
Methods inherited from class io.netty.channel.DefaultChannelPromise
addListener, addListeners, await, awaitUninterruptibly, channel, checkDeadLock, flushCheckpoint, flushCheckpoint, isVoid, promise, removeListener, removeListeners, setFailure, setSuccess, setSuccess, sync, syncUninterruptibly, trySuccess, unvoid
Methods inherited from class io.netty.util.concurrent.DefaultPromise
await, await, awaitUninterruptibly, awaitUninterruptibly, cancel, cause, get, get, getNow, isCancellable, isCancelled, isDone, isSuccess, notifyListener, setUncancellable, toString, toStringBuilder, tryFailure, trySuccess
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.netty.util.concurrent.Future
await, await, awaitUninterruptibly, awaitUninterruptibly, cancel, cause, getNow, isCancellable, isSuccess
Methods inherited from interface java.util.concurrent.Future
exceptionNow, get, get, isCancelled, isDone, resultNow, state
Methods inherited from interface io.netty.util.concurrent.Promise
setUncancellable, tryFailure, trySuccess
-
Field Details
-
registered
private volatile boolean registered
-
-
Constructor Details
-
PendingRegistrationPromise
PendingRegistrationPromise(Channel channel)
-
-
Method Details
-
registered
void registered() -
executor
Description copied from class:DefaultPromise
Get the executor used to notify listeners when this promise is complete.It is assumed this executor will protect against
StackOverflowError
exceptions. The executor may be used to avoidStackOverflowError
by executing aRunnable
if the stack depth exceeds a threshold.- Overrides:
executor
in classDefaultChannelPromise
- Returns:
- The executor used to notify listeners when this promise is complete.
-