Uses of Interface
io.netty5.util.concurrent.Promise
-
Packages that use Promise Package Description io.netty5.util Utility classes used across multiple packages.io.netty5.util.concurrent Utility classes for concurrent / async tasks.io.netty5.util.internal Internal-use-only utilities which is not allowed to be used outside Netty. -
-
Uses of Promise in io.netty5.util
Methods in io.netty5.util with parameters of type Promise Modifier and Type Method Description Future<OUT>AsyncMapping. map(IN input, Promise<OUT> promise)Returns theFuturethat will provide the result of the mapping. -
Uses of Promise in io.netty5.util.concurrent
Classes in io.netty5.util.concurrent that implement Promise Modifier and Type Class Description classDefaultPromise<V>Methods in io.netty5.util.concurrent that return Promise Modifier and Type Method Description default <V> Promise<V>EventExecutor. newPromise()Return a newPromise.<V> Promise<V>FuturePromiseFactory. newPromise()Return a newPromise.<V> Promise<V>ImmediateEventExecutor. newPromise()Promise<V>DefaultPromise. setFailure(Throwable cause)Promise<V>Promise. setFailure(Throwable cause)Marks this promise as a failure and notifies all listeners attached to the future.Promise<V>DefaultPromise. setSuccess(V result)Promise<V>Promise. setSuccess(V result)Marks this promise as a success and notifies all listeners attached to the future.Methods in io.netty5.util.concurrent with parameters of type Promise Modifier and Type Method Description default Future<V>Future. cascadeTo(Promise<? super V> promise)voidPromiseCombiner. finish(Promise<Void> aggregatePromise)Sets the promise to be notified when all combined futures have finished.protected static <V> RunnableScheduledFuture<V>AbstractScheduledEventExecutor. newRunnableScheduledFuture(AbstractScheduledEventExecutor executor, Promise<V> promise, Callable<V> task, long deadlineNanos, long periodNanos) -
Uses of Promise in io.netty5.util.internal
Methods in io.netty5.util.internal that return Promise Modifier and Type Method Description Promise<Void>PendingWrite. promise()Promise<Void>PendingWrite. recycleAndGet()Recycle this instance and return thePromise.Methods in io.netty5.util.internal with parameters of type Promise Modifier and Type Method Description static PendingWritePendingWrite. newInstance(Object msg, Promise<Void> promise)Create a new emptyRecyclableArrayListinstancestatic voidPromiseNotificationUtil. tryCancel(Promise<?> p, InternalLogger logger)static voidPromiseNotificationUtil. tryFailure(Promise<?> p, Throwable cause, InternalLogger logger)static <V> voidPromiseNotificationUtil. trySuccess(Promise<? super V> p, V result, InternalLogger logger)
-