接口的使用
cn.wjybxx.concurrent.IContext
使用IContext的程序包
-
cn.wjybxx.concurrent中IContext的使用
声明为IContext的cn.wjybxx.concurrent中的字段返回IContext的cn.wjybxx.concurrent中的方法参数类型为IContext的cn.wjybxx.concurrent中的方法修饰符和类型方法说明ForwardFuture.catching(Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends V> fallback, IContext ctx, int options) <X extends Throwable>
ICompletionStage<T> ICompletionStage.catching(Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends T> fallback, IContext ctx, int options) 它表示能从从特定的异常中恢复,并返回一个正常结果。IFuture.catching(Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends T> fallback, IContext ctx, int options) Promise.catching(Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends T> fallback, IContext ctx, int options) ForwardFuture.catchingAsync(Executor executor, Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends V> fallback, IContext ctx, int options) <X extends Throwable>
ICompletionStage<T> ICompletionStage.catchingAsync(Executor executor, Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends T> fallback, IContext ctx, int options) IFuture.catchingAsync(Executor executor, Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends T> fallback, IContext ctx, int options) Promise.catchingAsync(Executor executor, Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends T> fallback, IContext ctx, int options) <U> IFuture<U> ForwardFuture.composeApply(BiFunction<? super IContext, ? super V, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> ICompletionStage<U> ICompletionStage.composeApply(BiFunction<? super IContext, ? super T, ? extends ICompletionStage<U>> fn, IContext ctx, int options) 该方法表示在当前Future与返回的Future中插入一个异步操作,构建异步管道 => 这是链式调用的核心API。<U> IFuture<U> IFuture.composeApply(BiFunction<? super IContext, ? super T, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> Promise<U> Promise.composeApply(BiFunction<? super IContext, ? super T, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> IFuture<U> ForwardFuture.composeApplyAsync(Executor executor, BiFunction<? super IContext, ? super V, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> ICompletionStage<U> ICompletionStage.composeApplyAsync(Executor executor, BiFunction<? super IContext, ? super T, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> IFuture<U> IFuture.composeApplyAsync(Executor executor, BiFunction<? super IContext, ? super T, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> Promise<U> Promise.composeApplyAsync(Executor executor, BiFunction<? super IContext, ? super T, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> IFuture<U> ForwardFuture.composeCall(Function<? super IContext, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> ICompletionStage<U> ICompletionStage.composeCall(Function<? super IContext, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> IFuture<U> IFuture.composeCall(Function<? super IContext, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> Promise<U> Promise.composeCall(Function<? super IContext, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> IFuture<U> ForwardFuture.composeCallAsync(Executor executor, Function<? super IContext, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> ICompletionStage<U> ICompletionStage.composeCallAsync(Executor executor, Function<? super IContext, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> IFuture<U> IFuture.composeCallAsync(Executor executor, Function<? super IContext, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> Promise<U> Promise.composeCallAsync(Executor executor, Function<? super IContext, ? extends ICompletionStage<U>> fn, IContext ctx, int options) ForwardFuture.composeCatching(Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends ICompletionStage<V>> fallback, IContext ctx, int options) <X extends Throwable>
ICompletionStage<T> ICompletionStage.composeCatching(Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends ICompletionStage<T>> fallback, IContext ctx, int options) 它表示能从从特定的异常中恢复,并异步返回一个正常结果。IFuture.composeCatching(Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends ICompletionStage<T>> fallback, IContext ctx, int options) Promise.composeCatching(Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends ICompletionStage<T>> fallback, IContext ctx, int options) ForwardFuture.composeCatchingAsync(Executor executor, Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends ICompletionStage<V>> fallback, IContext ctx, int options) <X extends Throwable>
ICompletionStage<T> ICompletionStage.composeCatchingAsync(Executor executor, Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends ICompletionStage<T>> fallback, IContext ctx, int options) IFuture.composeCatchingAsync(Executor executor, Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends ICompletionStage<T>> fallback, IContext ctx, int options) Promise.composeCatchingAsync(Executor executor, Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends ICompletionStage<T>> fallback, IContext ctx, int options) <U> IFuture<U> ForwardFuture.composeHandle(cn.wjybxx.base.function.TriFunction<? super IContext, ? super V, ? super Throwable, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> ICompletionStage<U> ICompletionStage.composeHandle(cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, ? super Throwable, ? extends ICompletionStage<U>> fn, IContext ctx, int options) 它表示既能接收任务的正常结果,也可以接收任务异常结果,并异步返回一个运算结果。<U> IFuture<U> IFuture.composeHandle(cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, ? super Throwable, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> Promise<U> Promise.composeHandle(cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, ? super Throwable, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> IFuture<U> ForwardFuture.composeHandleAsync(Executor executor, cn.wjybxx.base.function.TriFunction<? super IContext, ? super V, ? super Throwable, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> ICompletionStage<U> ICompletionStage.composeHandleAsync(Executor executor, cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, ? super Throwable, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> IFuture<U> IFuture.composeHandleAsync(Executor executor, cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, ? super Throwable, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> Promise<U> Promise.composeHandleAsync(Executor executor, cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, ? super Throwable, ? extends ICompletionStage<U>> fn, IContext ctx, int options) voidvoidvoidvoidstatic voidFutureUtils.execute(IExecutor executor, Consumer<? super IContext> action, IContext ctx, int options) static voiddefault voiddefault void<U> IFuture<U> ForwardFuture.handle(cn.wjybxx.base.function.TriFunction<? super IContext, ? super V, Throwable, ? extends U> fn, IContext ctx, int options) <U> ICompletionStage<U> ICompletionStage.handle(cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, Throwable, ? extends U> fn, IContext ctx, int options) 该方法表示既能处理当前计算的正常结果,又能处理当前结算的异常结果(可以将异常转换为新的结果),并返回一个新的结果。<U> IFuture<U> IFuture.handle(cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, Throwable, ? extends U> fn, IContext ctx, int options) <U> Promise<U> Promise.handle(cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, Throwable, ? extends U> fn, IContext ctx, int options) <U> IFuture<U> ForwardFuture.handleAsync(Executor executor, cn.wjybxx.base.function.TriFunction<? super IContext, ? super V, Throwable, ? extends U> fn, IContext ctx, int options) <U> ICompletionStage<U> ICompletionStage.handleAsync(Executor executor, cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, Throwable, ? extends U> fn, IContext ctx, int options) <U> IFuture<U> IFuture.handleAsync(Executor executor, cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, Throwable, ? extends U> fn, IContext ctx, int options) <U> Promise<U> Promise.handleAsync(Executor executor, cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, Throwable, ? extends U> fn, IContext ctx, int options) default void任务在添加到Executor之前进行绑定static <V> ScheduledTaskBuilder<V> static <V> TaskBuilder<V> static <V> ScheduledTaskBuilder<V> static <V> TaskBuilder<V> static <V> ScheduledTaskBuilder<V> ScheduledTaskBuilder.newTimeSharing(TimeSharingTask<? super V> task, IContext ctx) static <V> TaskBuilder<V> TaskBuilder.newTimeSharing(TimeSharingTask<? super V> task, IContext ctx) static PromiseTask<?> static PromiseTask<?> PromiseTask.ofAction(Consumer<? super IContext> action, IContext ctx, int options, IPromise<?> promise) static ScheduledPromiseTask<?> ScheduledPromiseTask.ofAction(Runnable action, IContext ctx, int options, IScheduledPromise<?> promise, long id, long nextTriggerTime) static ScheduledPromiseTask<?> ScheduledPromiseTask.ofAction(Consumer<? super IContext> action, IContext ctx, int options, IScheduledPromise<?> promise, long id, long nextTriggerTime) static <V> PromiseTask<V> PromiseTask.ofFunction(Callable<? extends V> action, IContext ctx, int options, IPromise<V> promise) static <V> PromiseTask<V> PromiseTask.ofFunction(Function<? super IContext, ? extends V> action, IContext ctx, int options, IPromise<V> promise) static <V> ScheduledPromiseTask<V> ScheduledPromiseTask.ofFunction(Callable<? extends V> action, IContext ctx, int options, IScheduledPromise<V> promise, long id, long nextTriggerTime) static <V> ScheduledPromiseTask<V> ScheduledPromiseTask.ofFunction(Function<? super IContext, ? extends V> action, IContext ctx, int options, IScheduledPromise<V> promise, long id, long nextTriggerTime) voidForwardFuture.onCompleted(BiConsumer<? super IFuture<V>, ? super IContext> action, IContext context) voidForwardFuture.onCompleted(BiConsumer<? super IFuture<V>, ? super IContext> action, IContext context, int options) voidIFuture.onCompleted(BiConsumer<? super IFuture<T>, ? super IContext> action, IContext context) voidIFuture.onCompleted(BiConsumer<? super IFuture<T>, ? super IContext> action, IContext context, int options) 该接口支持Context参数,可响应取消voidPromise.onCompleted(BiConsumer<? super IFuture<T>, ? super IContext> action, IContext context) voidPromise.onCompleted(BiConsumer<? super IFuture<T>, ? super IContext> action, IContext context, int options) voidForwardFuture.onCompletedAsync(Executor executor, BiConsumer<? super IFuture<V>, ? super IContext> action, IContext context) voidForwardFuture.onCompletedAsync(Executor executor, BiConsumer<? super IFuture<V>, ? super IContext> action, IContext context, int options) voidIFuture.onCompletedAsync(Executor executor, BiConsumer<? super IFuture<T>, ? super IContext> action, IContext context) voidIFuture.onCompletedAsync(Executor executor, BiConsumer<? super IFuture<T>, ? super IContext> action, IContext context, int options) voidPromise.onCompletedAsync(Executor executor, BiConsumer<? super IFuture<T>, ? super IContext> action, IContext context) voidPromise.onCompletedAsync(Executor executor, BiConsumer<? super IFuture<T>, ? super IContext> action, IContext context, int options) AbstractEventLoopGroup.scheduleAction(Consumer<? super IContext> task, IContext ctx, long delay, TimeUnit unit) IScheduledExecutorService.scheduleAction(Consumer<? super IContext> task, IContext ctx, long delay, TimeUnit unit) 延迟指定时间后执行给定的任务<V> IScheduledFuture<V> AbstractEventLoopGroup.scheduleFunc(Function<? super IContext, V> task, IContext ctx, long delay, TimeUnit unit) <V> IScheduledFuture<V> IScheduledExecutorService.scheduleFunc(Function<? super IContext, V> task, IContext ctx, long delay, TimeUnit unit) 延迟指定时间后执行给定的任务任务的上下文 即使用户的任务不接收ctx,executor也可能需要default void任务开始前调用 1. start和update是连续执行的。default void任务结束时调用 1.只有在成功执行TimeSharingTask.start(IContext, IPromise)的情况下才会调用 2.会在start所在的executor调用 -- 如果目标executor已关闭则不会执行。IFuture<?> AbstractEventLoop.submitAction(Consumer<? super IContext> task, IContext ctx) IFuture<?> AbstractEventLoop.submitAction(Consumer<? super IContext> task, IContext ctx, int options) IFuture<?> AbstractEventLoopGroup.submitAction(Consumer<? super IContext> task, IContext ctx) IFuture<?> AbstractEventLoopGroup.submitAction(Consumer<? super IContext> task, IContext ctx, int options) static IFuture<?> FutureUtils.submitAction(IExecutor executor, Consumer<? super IContext> task, IContext ctx, int options) static IFuture<?> FutureUtils.submitAction(Executor executor, Consumer<? super IContext> task, IContext ctx) IFuture<?> IExecutorService.submitAction(Consumer<? super IContext> task, IContext ctx) IFuture<?> IExecutorService.submitAction(Consumer<? super IContext> task, IContext ctx, int options) <V> IFuture<V> AbstractEventLoop.submitFunc(Function<? super IContext, ? extends V> task, IContext ctx) <V> IFuture<V> AbstractEventLoop.submitFunc(Function<? super IContext, ? extends V> task, IContext ctx, int options) <V> IFuture<V> AbstractEventLoopGroup.submitFunc(Function<? super IContext, ? extends V> task, IContext ctx) <V> IFuture<V> AbstractEventLoopGroup.submitFunc(Function<? super IContext, ? extends V> task, IContext ctx, int options) static <V> IFuture<V> FutureUtils.submitFunc(IExecutor executor, Function<? super IContext, ? extends V> task, IContext ctx, int options) static <V> IFuture<V> FutureUtils.submitFunc(Executor executor, Function<? super IContext, ? extends V> task, IContext ctx) <T> IFuture<T> IExecutorService.submitFunc(Function<? super IContext, ? extends T> task, IContext ctx) <T> IFuture<T> IExecutorService.submitFunc(Function<? super IContext, ? extends T> task, IContext ctx, int options) ForwardFuture.thenAccept(BiConsumer<? super IContext, ? super V> action, IContext ctx, int options) ICompletionStage.thenAccept(BiConsumer<? super IContext, ? super T> action, IContext ctx, int options) 该方法返回一个新的Future,它的结果由当前Future驱动。IFuture.thenAccept(BiConsumer<? super IContext, ? super T> action, IContext ctx, int options) Promise.thenAccept(BiConsumer<? super IContext, ? super T> action, IContext ctx, int options) ForwardFuture.thenAcceptAsync(Executor executor, BiConsumer<? super IContext, ? super V> action, IContext ctx, int options) ICompletionStage.thenAcceptAsync(Executor executor, BiConsumer<? super IContext, ? super T> action, IContext ctx, int options) IFuture.thenAcceptAsync(Executor executor, BiConsumer<? super IContext, ? super T> action, IContext ctx, int options) Promise.thenAcceptAsync(Executor executor, BiConsumer<? super IContext, ? super T> action, IContext ctx, int options) <U> IFuture<U> ForwardFuture.thenApply(BiFunction<? super IContext, ? super V, ? extends U> fn, IContext ctx, int options) <U> ICompletionStage<U> ICompletionStage.thenApply(BiFunction<? super IContext, ? super T, ? extends U> fn, IContext ctx, int options) 该方法返回一个新的Future,它的结果由当前Future驱动。<U> IFuture<U> IFuture.thenApply(BiFunction<? super IContext, ? super T, ? extends U> fn, IContext ctx, int options) <U> Promise<U> Promise.thenApply(BiFunction<? super IContext, ? super T, ? extends U> fn, IContext ctx, int options) <U> IFuture<U> ForwardFuture.thenApplyAsync(Executor executor, BiFunction<? super IContext, ? super V, ? extends U> fn, IContext ctx, int options) <U> ICompletionStage<U> ICompletionStage.thenApplyAsync(Executor executor, BiFunction<? super IContext, ? super T, ? extends U> fn, IContext ctx, int options) <U> IFuture<U> IFuture.thenApplyAsync(Executor executor, BiFunction<? super IContext, ? super T, ? extends U> fn, IContext ctx, int options) <U> Promise<U> Promise.thenApplyAsync(Executor executor, BiFunction<? super IContext, ? super T, ? extends U> fn, IContext ctx, int options) <U> IFuture<U> <U> ICompletionStage<U> 该方法返回一个新的Future,它的结果由当前Future驱动。<U> IFuture<U> <U> Promise<U> <U> IFuture<U> ForwardFuture.thenCallAsync(Executor executor, Function<? super IContext, ? extends U> fn, IContext ctx, int options) <U> ICompletionStage<U> ICompletionStage.thenCallAsync(Executor executor, Function<? super IContext, ? extends U> fn, IContext ctx, int options) <U> IFuture<U> IFuture.thenCallAsync(Executor executor, Function<? super IContext, ? extends U> fn, IContext ctx, int options) <U> Promise<U> Promise.thenCallAsync(Executor executor, Function<? super IContext, ? extends U> fn, IContext ctx, int options) 该方法返回一个新的Future,它的结果由当前Future驱动。ForwardFuture.thenRunAsync(Executor executor, Consumer<? super IContext> action, IContext ctx, int options) ICompletionStage.thenRunAsync(Executor executor, Consumer<? super IContext> action, IContext ctx, int options) IFuture.thenRunAsync(Executor executor, Consumer<? super IContext> action, IContext ctx, int options) Promise.thenRunAsync(Executor executor, Consumer<? super IContext> action, IContext ctx, int options) static ITaskprotected static voidPromiseTask.trySetCancelled(IPromise<?> promise, IContext ctx) protected static voidPromiseTask.trySetCancelled(IPromise<?> promise, IContext ctx, int def) void单步执行一次。ForwardFuture.whenComplete(cn.wjybxx.base.function.TriConsumer<? super IContext, ? super V, ? super Throwable> action, IContext ctx, int options) ICompletionStage.whenComplete(cn.wjybxx.base.function.TriConsumer<? super IContext, ? super T, ? super Throwable> action, IContext ctx, int options) 该方法返回一个新的Future,无论当前Future执行成功还是失败,给定的操作都将执行,且返回的Future始终以相同的结果进入完成状态。IFuture.whenComplete(cn.wjybxx.base.function.TriConsumer<? super IContext, ? super T, ? super Throwable> action, IContext ctx, int options) Promise.whenComplete(cn.wjybxx.base.function.TriConsumer<? super IContext, ? super T, ? super Throwable> action, IContext ctx, int options) ForwardFuture.whenCompleteAsync(Executor executor, cn.wjybxx.base.function.TriConsumer<? super IContext, ? super V, ? super Throwable> action, IContext ctx, int options) ICompletionStage.whenCompleteAsync(Executor executor, cn.wjybxx.base.function.TriConsumer<? super IContext, ? super T, ? super Throwable> action, IContext ctx, int options) IFuture.whenCompleteAsync(Executor executor, cn.wjybxx.base.function.TriConsumer<? super IContext, ? super T, ? super Throwable> action, IContext ctx, int options) Promise.whenCompleteAsync(Executor executor, cn.wjybxx.base.function.TriConsumer<? super IContext, ? super T, ? super Throwable> action, IContext ctx, int options) 类型变量类型为IContext的cn.wjybxx.concurrent中的方法参数修饰符和类型方法说明ForwardFuture.catching(Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends V> fallback) ForwardFuture.catching(Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends V> fallback, IContext ctx, int options) <X extends Throwable>
ICompletionStage<T> ICompletionStage.catching(Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends T> fallback) <X extends Throwable>
ICompletionStage<T> ICompletionStage.catching(Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends T> fallback, IContext ctx, int options) 它表示能从从特定的异常中恢复,并返回一个正常结果。IFuture.catching(Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends T> fallback) IFuture.catching(Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends T> fallback, IContext ctx, int options) Promise.catching(Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends T> fallback) Promise.catching(Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends T> fallback, IContext ctx, int options) ForwardFuture.catchingAsync(Executor executor, Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends V> fallback) ForwardFuture.catchingAsync(Executor executor, Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends V> fallback, IContext ctx, int options) <X extends Throwable>
ICompletionStage<T> ICompletionStage.catchingAsync(Executor executor, Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends T> fallback) <X extends Throwable>
ICompletionStage<T> ICompletionStage.catchingAsync(Executor executor, Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends T> fallback, IContext ctx, int options) IFuture.catchingAsync(Executor executor, Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends T> fallback) IFuture.catchingAsync(Executor executor, Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends T> fallback, IContext ctx, int options) Promise.catchingAsync(Executor executor, Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends T> fallback) Promise.catchingAsync(Executor executor, Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends T> fallback, IContext ctx, int options) <U> IFuture<U> ForwardFuture.composeApply(BiFunction<? super IContext, ? super V, ? extends ICompletionStage<U>> fn) <U> IFuture<U> ForwardFuture.composeApply(BiFunction<? super IContext, ? super V, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> ICompletionStage<U> ICompletionStage.composeApply(BiFunction<? super IContext, ? super T, ? extends ICompletionStage<U>> fn) <U> ICompletionStage<U> ICompletionStage.composeApply(BiFunction<? super IContext, ? super T, ? extends ICompletionStage<U>> fn, IContext ctx, int options) 该方法表示在当前Future与返回的Future中插入一个异步操作,构建异步管道 => 这是链式调用的核心API。<U> IFuture<U> IFuture.composeApply(BiFunction<? super IContext, ? super T, ? extends ICompletionStage<U>> fn) <U> IFuture<U> IFuture.composeApply(BiFunction<? super IContext, ? super T, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> Promise<U> Promise.composeApply(BiFunction<? super IContext, ? super T, ? extends ICompletionStage<U>> fn) <U> Promise<U> Promise.composeApply(BiFunction<? super IContext, ? super T, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> IFuture<U> ForwardFuture.composeApplyAsync(Executor executor, BiFunction<? super IContext, ? super V, ? extends ICompletionStage<U>> fn) <U> IFuture<U> ForwardFuture.composeApplyAsync(Executor executor, BiFunction<? super IContext, ? super V, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> ICompletionStage<U> ICompletionStage.composeApplyAsync(Executor executor, BiFunction<? super IContext, ? super T, ? extends ICompletionStage<U>> fn) <U> ICompletionStage<U> ICompletionStage.composeApplyAsync(Executor executor, BiFunction<? super IContext, ? super T, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> IFuture<U> IFuture.composeApplyAsync(Executor executor, BiFunction<? super IContext, ? super T, ? extends ICompletionStage<U>> fn) <U> IFuture<U> IFuture.composeApplyAsync(Executor executor, BiFunction<? super IContext, ? super T, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> Promise<U> Promise.composeApplyAsync(Executor executor, BiFunction<? super IContext, ? super T, ? extends ICompletionStage<U>> fn) <U> Promise<U> Promise.composeApplyAsync(Executor executor, BiFunction<? super IContext, ? super T, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> IFuture<U> ForwardFuture.composeCall(Function<? super IContext, ? extends ICompletionStage<U>> fn) <U> IFuture<U> ForwardFuture.composeCall(Function<? super IContext, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> ICompletionStage<U> ICompletionStage.composeCall(Function<? super IContext, ? extends ICompletionStage<U>> fn) <U> ICompletionStage<U> ICompletionStage.composeCall(Function<? super IContext, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> IFuture<U> IFuture.composeCall(Function<? super IContext, ? extends ICompletionStage<U>> fn) <U> IFuture<U> IFuture.composeCall(Function<? super IContext, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> Promise<U> Promise.composeCall(Function<? super IContext, ? extends ICompletionStage<U>> fn) <U> Promise<U> Promise.composeCall(Function<? super IContext, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> IFuture<U> ForwardFuture.composeCallAsync(Executor executor, Function<? super IContext, ? extends ICompletionStage<U>> fn) <U> IFuture<U> ForwardFuture.composeCallAsync(Executor executor, Function<? super IContext, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> ICompletionStage<U> ICompletionStage.composeCallAsync(Executor executor, Function<? super IContext, ? extends ICompletionStage<U>> fn) <U> ICompletionStage<U> ICompletionStage.composeCallAsync(Executor executor, Function<? super IContext, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> IFuture<U> IFuture.composeCallAsync(Executor executor, Function<? super IContext, ? extends ICompletionStage<U>> fn) <U> IFuture<U> IFuture.composeCallAsync(Executor executor, Function<? super IContext, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> Promise<U> Promise.composeCallAsync(Executor executor, Function<? super IContext, ? extends ICompletionStage<U>> fn) <U> Promise<U> Promise.composeCallAsync(Executor executor, Function<? super IContext, ? extends ICompletionStage<U>> fn, IContext ctx, int options) ForwardFuture.composeCatching(Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends ICompletionStage<V>> fallback) ForwardFuture.composeCatching(Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends ICompletionStage<V>> fallback, IContext ctx, int options) <X extends Throwable>
ICompletionStage<T> ICompletionStage.composeCatching(Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends ICompletionStage<T>> fallback) <X extends Throwable>
ICompletionStage<T> ICompletionStage.composeCatching(Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends ICompletionStage<T>> fallback, IContext ctx, int options) 它表示能从从特定的异常中恢复,并异步返回一个正常结果。IFuture.composeCatching(Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends ICompletionStage<T>> fallback) IFuture.composeCatching(Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends ICompletionStage<T>> fallback, IContext ctx, int options) Promise.composeCatching(Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends ICompletionStage<T>> fallback) Promise.composeCatching(Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends ICompletionStage<T>> fallback, IContext ctx, int options) ForwardFuture.composeCatchingAsync(Executor executor, Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends ICompletionStage<V>> fallback) ForwardFuture.composeCatchingAsync(Executor executor, Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends ICompletionStage<V>> fallback, IContext ctx, int options) <X extends Throwable>
ICompletionStage<T> ICompletionStage.composeCatchingAsync(Executor executor, Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends ICompletionStage<T>> fallback) <X extends Throwable>
ICompletionStage<T> ICompletionStage.composeCatchingAsync(Executor executor, Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends ICompletionStage<T>> fallback, IContext ctx, int options) IFuture.composeCatchingAsync(Executor executor, Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends ICompletionStage<T>> fallback) IFuture.composeCatchingAsync(Executor executor, Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends ICompletionStage<T>> fallback, IContext ctx, int options) Promise.composeCatchingAsync(Executor executor, Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends ICompletionStage<T>> fallback) Promise.composeCatchingAsync(Executor executor, Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends ICompletionStage<T>> fallback, IContext ctx, int options) <U> IFuture<U> ForwardFuture.composeHandle(cn.wjybxx.base.function.TriFunction<? super IContext, ? super V, ? super Throwable, ? extends ICompletionStage<U>> fn) <U> IFuture<U> ForwardFuture.composeHandle(cn.wjybxx.base.function.TriFunction<? super IContext, ? super V, ? super Throwable, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> ICompletionStage<U> ICompletionStage.composeHandle(cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, ? super Throwable, ? extends ICompletionStage<U>> fn) <U> ICompletionStage<U> ICompletionStage.composeHandle(cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, ? super Throwable, ? extends ICompletionStage<U>> fn, IContext ctx, int options) 它表示既能接收任务的正常结果,也可以接收任务异常结果,并异步返回一个运算结果。<U> IFuture<U> IFuture.composeHandle(cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, ? super Throwable, ? extends ICompletionStage<U>> fn) <U> IFuture<U> IFuture.composeHandle(cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, ? super Throwable, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> Promise<U> Promise.composeHandle(cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, ? super Throwable, ? extends ICompletionStage<U>> fn) <U> Promise<U> Promise.composeHandle(cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, ? super Throwable, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> IFuture<U> ForwardFuture.composeHandleAsync(Executor executor, cn.wjybxx.base.function.TriFunction<? super IContext, ? super V, ? super Throwable, ? extends ICompletionStage<U>> fn) <U> IFuture<U> ForwardFuture.composeHandleAsync(Executor executor, cn.wjybxx.base.function.TriFunction<? super IContext, ? super V, ? super Throwable, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> ICompletionStage<U> ICompletionStage.composeHandleAsync(Executor executor, cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, ? super Throwable, ? extends ICompletionStage<U>> fn) <U> ICompletionStage<U> ICompletionStage.composeHandleAsync(Executor executor, cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, ? super Throwable, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> IFuture<U> IFuture.composeHandleAsync(Executor executor, cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, ? super Throwable, ? extends ICompletionStage<U>> fn) <U> IFuture<U> IFuture.composeHandleAsync(Executor executor, cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, ? super Throwable, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> Promise<U> Promise.composeHandleAsync(Executor executor, cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, ? super Throwable, ? extends ICompletionStage<U>> fn) <U> Promise<U> Promise.composeHandleAsync(Executor executor, cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, ? super Throwable, ? extends ICompletionStage<U>> fn, IContext ctx, int options) voidvoidvoidvoidstatic voidFutureUtils.execute(IExecutor executor, Consumer<? super IContext> action, IContext ctx, int options) static voiddefault voiddefault void<U> IFuture<U> ForwardFuture.handle(cn.wjybxx.base.function.TriFunction<? super IContext, ? super V, Throwable, ? extends U> fn) <U> IFuture<U> ForwardFuture.handle(cn.wjybxx.base.function.TriFunction<? super IContext, ? super V, Throwable, ? extends U> fn, IContext ctx, int options) <U> ICompletionStage<U> ICompletionStage.handle(cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, Throwable, ? extends U> fn) <U> ICompletionStage<U> ICompletionStage.handle(cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, Throwable, ? extends U> fn, IContext ctx, int options) 该方法表示既能处理当前计算的正常结果,又能处理当前结算的异常结果(可以将异常转换为新的结果),并返回一个新的结果。<U> IFuture<U> IFuture.handle(cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, Throwable, ? extends U> fn) <U> IFuture<U> IFuture.handle(cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, Throwable, ? extends U> fn, IContext ctx, int options) <U> Promise<U> Promise.handle(cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, Throwable, ? extends U> fn) <U> Promise<U> Promise.handle(cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, Throwable, ? extends U> fn, IContext ctx, int options) <U> IFuture<U> ForwardFuture.handleAsync(Executor executor, cn.wjybxx.base.function.TriFunction<? super IContext, ? super V, Throwable, ? extends U> fn) <U> IFuture<U> ForwardFuture.handleAsync(Executor executor, cn.wjybxx.base.function.TriFunction<? super IContext, ? super V, Throwable, ? extends U> fn, IContext ctx, int options) <U> ICompletionStage<U> ICompletionStage.handleAsync(Executor executor, cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, Throwable, ? extends U> fn) <U> ICompletionStage<U> ICompletionStage.handleAsync(Executor executor, cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, Throwable, ? extends U> fn, IContext ctx, int options) <U> IFuture<U> IFuture.handleAsync(Executor executor, cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, Throwable, ? extends U> fn) <U> IFuture<U> IFuture.handleAsync(Executor executor, cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, Throwable, ? extends U> fn, IContext ctx, int options) <U> Promise<U> Promise.handleAsync(Executor executor, cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, Throwable, ? extends U> fn) <U> Promise<U> Promise.handleAsync(Executor executor, cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, Throwable, ? extends U> fn, IContext ctx, int options) static <V> ScheduledTaskBuilder<V> static <V> TaskBuilder<V> static <V> ScheduledTaskBuilder<V> static <V> TaskBuilder<V> static PromiseTask<?> PromiseTask.ofAction(Consumer<? super IContext> action, IContext ctx, int options, IPromise<?> promise) static ScheduledPromiseTask<?> ScheduledPromiseTask.ofAction(Consumer<? super IContext> action, IContext ctx, int options, IScheduledPromise<?> promise, long id, long nextTriggerTime) static <V> PromiseTask<V> PromiseTask.ofFunction(Function<? super IContext, ? extends V> action, IContext ctx, int options, IPromise<V> promise) static <V> ScheduledPromiseTask<V> ScheduledPromiseTask.ofFunction(Function<? super IContext, ? extends V> action, IContext ctx, int options, IScheduledPromise<V> promise, long id, long nextTriggerTime) voidForwardFuture.onCompleted(BiConsumer<? super IFuture<V>, ? super IContext> action, IContext context) voidForwardFuture.onCompleted(BiConsumer<? super IFuture<V>, ? super IContext> action, IContext context, int options) voidIFuture.onCompleted(BiConsumer<? super IFuture<T>, ? super IContext> action, IContext context) voidIFuture.onCompleted(BiConsumer<? super IFuture<T>, ? super IContext> action, IContext context, int options) 该接口支持Context参数,可响应取消voidPromise.onCompleted(BiConsumer<? super IFuture<T>, ? super IContext> action, IContext context) voidPromise.onCompleted(BiConsumer<? super IFuture<T>, ? super IContext> action, IContext context, int options) voidForwardFuture.onCompletedAsync(Executor executor, BiConsumer<? super IFuture<V>, ? super IContext> action, IContext context) voidForwardFuture.onCompletedAsync(Executor executor, BiConsumer<? super IFuture<V>, ? super IContext> action, IContext context, int options) voidIFuture.onCompletedAsync(Executor executor, BiConsumer<? super IFuture<T>, ? super IContext> action, IContext context) voidIFuture.onCompletedAsync(Executor executor, BiConsumer<? super IFuture<T>, ? super IContext> action, IContext context, int options) voidPromise.onCompletedAsync(Executor executor, BiConsumer<? super IFuture<T>, ? super IContext> action, IContext context) voidPromise.onCompletedAsync(Executor executor, BiConsumer<? super IFuture<T>, ? super IContext> action, IContext context, int options) AbstractEventLoopGroup.scheduleAction(Consumer<? super IContext> task, IContext ctx, long delay, TimeUnit unit) IScheduledExecutorService.scheduleAction(Consumer<? super IContext> task, IContext ctx, long delay, TimeUnit unit) 延迟指定时间后执行给定的任务<V> IScheduledFuture<V> AbstractEventLoopGroup.scheduleFunc(Function<? super IContext, V> task, IContext ctx, long delay, TimeUnit unit) <V> IScheduledFuture<V> IScheduledExecutorService.scheduleFunc(Function<? super IContext, V> task, IContext ctx, long delay, TimeUnit unit) 延迟指定时间后执行给定的任务IFuture<?> AbstractEventLoop.submitAction(Consumer<? super IContext> task, IContext ctx) IFuture<?> AbstractEventLoop.submitAction(Consumer<? super IContext> task, IContext ctx, int options) IFuture<?> AbstractEventLoopGroup.submitAction(Consumer<? super IContext> task, IContext ctx) IFuture<?> AbstractEventLoopGroup.submitAction(Consumer<? super IContext> task, IContext ctx, int options) static IFuture<?> FutureUtils.submitAction(IExecutor executor, Consumer<? super IContext> task, IContext ctx, int options) static IFuture<?> FutureUtils.submitAction(Executor executor, Consumer<? super IContext> task, IContext ctx) IFuture<?> IExecutorService.submitAction(Consumer<? super IContext> task, IContext ctx) IFuture<?> IExecutorService.submitAction(Consumer<? super IContext> task, IContext ctx, int options) <V> IFuture<V> AbstractEventLoop.submitFunc(Function<? super IContext, ? extends V> task, IContext ctx) <V> IFuture<V> AbstractEventLoop.submitFunc(Function<? super IContext, ? extends V> task, IContext ctx, int options) <V> IFuture<V> AbstractEventLoopGroup.submitFunc(Function<? super IContext, ? extends V> task, IContext ctx) <V> IFuture<V> AbstractEventLoopGroup.submitFunc(Function<? super IContext, ? extends V> task, IContext ctx, int options) static <V> IFuture<V> FutureUtils.submitFunc(IExecutor executor, Function<? super IContext, ? extends V> task, IContext ctx, int options) static <V> IFuture<V> FutureUtils.submitFunc(Executor executor, Function<? super IContext, ? extends V> task, IContext ctx) <T> IFuture<T> IExecutorService.submitFunc(Function<? super IContext, ? extends T> task, IContext ctx) <T> IFuture<T> IExecutorService.submitFunc(Function<? super IContext, ? extends T> task, IContext ctx, int options) ForwardFuture.thenAccept(BiConsumer<? super IContext, ? super V> action) ForwardFuture.thenAccept(BiConsumer<? super IContext, ? super V> action, IContext ctx, int options) ICompletionStage.thenAccept(BiConsumer<? super IContext, ? super T> action) ICompletionStage.thenAccept(BiConsumer<? super IContext, ? super T> action, IContext ctx, int options) 该方法返回一个新的Future,它的结果由当前Future驱动。IFuture.thenAccept(BiConsumer<? super IContext, ? super T> action) IFuture.thenAccept(BiConsumer<? super IContext, ? super T> action, IContext ctx, int options) Promise.thenAccept(BiConsumer<? super IContext, ? super T> action) Promise.thenAccept(BiConsumer<? super IContext, ? super T> action, IContext ctx, int options) ForwardFuture.thenAcceptAsync(Executor executor, BiConsumer<? super IContext, ? super V> action) ForwardFuture.thenAcceptAsync(Executor executor, BiConsumer<? super IContext, ? super V> action, IContext ctx, int options) ICompletionStage.thenAcceptAsync(Executor executor, BiConsumer<? super IContext, ? super T> action) ICompletionStage.thenAcceptAsync(Executor executor, BiConsumer<? super IContext, ? super T> action, IContext ctx, int options) IFuture.thenAcceptAsync(Executor executor, BiConsumer<? super IContext, ? super T> action) IFuture.thenAcceptAsync(Executor executor, BiConsumer<? super IContext, ? super T> action, IContext ctx, int options) Promise.thenAcceptAsync(Executor executor, BiConsumer<? super IContext, ? super T> action) Promise.thenAcceptAsync(Executor executor, BiConsumer<? super IContext, ? super T> action, IContext ctx, int options) <U> IFuture<U> ForwardFuture.thenApply(BiFunction<? super IContext, ? super V, ? extends U> fn) <U> IFuture<U> ForwardFuture.thenApply(BiFunction<? super IContext, ? super V, ? extends U> fn, IContext ctx, int options) <U> ICompletionStage<U> ICompletionStage.thenApply(BiFunction<? super IContext, ? super T, ? extends U> fn) <U> ICompletionStage<U> ICompletionStage.thenApply(BiFunction<? super IContext, ? super T, ? extends U> fn, IContext ctx, int options) 该方法返回一个新的Future,它的结果由当前Future驱动。<U> IFuture<U> IFuture.thenApply(BiFunction<? super IContext, ? super T, ? extends U> fn) <U> IFuture<U> IFuture.thenApply(BiFunction<? super IContext, ? super T, ? extends U> fn, IContext ctx, int options) <U> Promise<U> Promise.thenApply(BiFunction<? super IContext, ? super T, ? extends U> fn) <U> Promise<U> Promise.thenApply(BiFunction<? super IContext, ? super T, ? extends U> fn, IContext ctx, int options) <U> IFuture<U> ForwardFuture.thenApplyAsync(Executor executor, BiFunction<? super IContext, ? super V, ? extends U> fn) <U> IFuture<U> ForwardFuture.thenApplyAsync(Executor executor, BiFunction<? super IContext, ? super V, ? extends U> fn, IContext ctx, int options) <U> ICompletionStage<U> ICompletionStage.thenApplyAsync(Executor executor, BiFunction<? super IContext, ? super T, ? extends U> fn) <U> ICompletionStage<U> ICompletionStage.thenApplyAsync(Executor executor, BiFunction<? super IContext, ? super T, ? extends U> fn, IContext ctx, int options) <U> IFuture<U> IFuture.thenApplyAsync(Executor executor, BiFunction<? super IContext, ? super T, ? extends U> fn) <U> IFuture<U> IFuture.thenApplyAsync(Executor executor, BiFunction<? super IContext, ? super T, ? extends U> fn, IContext ctx, int options) <U> Promise<U> Promise.thenApplyAsync(Executor executor, BiFunction<? super IContext, ? super T, ? extends U> fn) <U> Promise<U> Promise.thenApplyAsync(Executor executor, BiFunction<? super IContext, ? super T, ? extends U> fn, IContext ctx, int options) <U> IFuture<U> <U> IFuture<U> <U> ICompletionStage<U> <U> ICompletionStage<U> 该方法返回一个新的Future,它的结果由当前Future驱动。<U> IFuture<U> <U> IFuture<U> <U> Promise<U> <U> Promise<U> <U> IFuture<U> ForwardFuture.thenCallAsync(Executor executor, Function<? super IContext, ? extends U> fn) <U> IFuture<U> ForwardFuture.thenCallAsync(Executor executor, Function<? super IContext, ? extends U> fn, IContext ctx, int options) <U> ICompletionStage<U> ICompletionStage.thenCallAsync(Executor executor, Function<? super IContext, ? extends U> fn) <U> ICompletionStage<U> ICompletionStage.thenCallAsync(Executor executor, Function<? super IContext, ? extends U> fn, IContext ctx, int options) <U> IFuture<U> IFuture.thenCallAsync(Executor executor, Function<? super IContext, ? extends U> fn) <U> IFuture<U> IFuture.thenCallAsync(Executor executor, Function<? super IContext, ? extends U> fn, IContext ctx, int options) <U> Promise<U> Promise.thenCallAsync(Executor executor, Function<? super IContext, ? extends U> fn) <U> Promise<U> Promise.thenCallAsync(Executor executor, Function<? super IContext, ? extends U> fn, IContext ctx, int options) 该方法返回一个新的Future,它的结果由当前Future驱动。ForwardFuture.thenRunAsync(Executor executor, Consumer<? super IContext> action) ForwardFuture.thenRunAsync(Executor executor, Consumer<? super IContext> action, IContext ctx, int options) ICompletionStage.thenRunAsync(Executor executor, Consumer<? super IContext> action) ICompletionStage.thenRunAsync(Executor executor, Consumer<? super IContext> action, IContext ctx, int options) IFuture.thenRunAsync(Executor executor, Consumer<? super IContext> action) IFuture.thenRunAsync(Executor executor, Consumer<? super IContext> action, IContext ctx, int options) Promise.thenRunAsync(Executor executor, Consumer<? super IContext> action) Promise.thenRunAsync(Executor executor, Consumer<? super IContext> action, IContext ctx, int options) static ITaskForwardFuture.whenComplete(cn.wjybxx.base.function.TriConsumer<? super IContext, ? super V, ? super Throwable> action) ForwardFuture.whenComplete(cn.wjybxx.base.function.TriConsumer<? super IContext, ? super V, ? super Throwable> action, IContext ctx, int options) ICompletionStage.whenComplete(cn.wjybxx.base.function.TriConsumer<? super IContext, ? super T, ? super Throwable> action) ICompletionStage.whenComplete(cn.wjybxx.base.function.TriConsumer<? super IContext, ? super T, ? super Throwable> action, IContext ctx, int options) 该方法返回一个新的Future,无论当前Future执行成功还是失败,给定的操作都将执行,且返回的Future始终以相同的结果进入完成状态。IFuture.whenComplete(cn.wjybxx.base.function.TriConsumer<? super IContext, ? super T, ? super Throwable> action) IFuture.whenComplete(cn.wjybxx.base.function.TriConsumer<? super IContext, ? super T, ? super Throwable> action, IContext ctx, int options) Promise.whenComplete(cn.wjybxx.base.function.TriConsumer<? super IContext, ? super T, ? super Throwable> action) Promise.whenComplete(cn.wjybxx.base.function.TriConsumer<? super IContext, ? super T, ? super Throwable> action, IContext ctx, int options) ForwardFuture.whenCompleteAsync(Executor executor, cn.wjybxx.base.function.TriConsumer<? super IContext, ? super V, ? super Throwable> action) ForwardFuture.whenCompleteAsync(Executor executor, cn.wjybxx.base.function.TriConsumer<? super IContext, ? super V, ? super Throwable> action, IContext ctx, int options) ICompletionStage.whenCompleteAsync(Executor executor, cn.wjybxx.base.function.TriConsumer<? super IContext, ? super T, ? super Throwable> action) ICompletionStage.whenCompleteAsync(Executor executor, cn.wjybxx.base.function.TriConsumer<? super IContext, ? super T, ? super Throwable> action, IContext ctx, int options) IFuture.whenCompleteAsync(Executor executor, cn.wjybxx.base.function.TriConsumer<? super IContext, ? super T, ? super Throwable> action) IFuture.whenCompleteAsync(Executor executor, cn.wjybxx.base.function.TriConsumer<? super IContext, ? super T, ? super Throwable> action, IContext ctx, int options) Promise.whenCompleteAsync(Executor executor, cn.wjybxx.base.function.TriConsumer<? super IContext, ? super T, ? super Throwable> action) Promise.whenCompleteAsync(Executor executor, cn.wjybxx.base.function.TriConsumer<? super IContext, ? super T, ? super Throwable> action, IContext ctx, int options) 参数类型为IContext的cn.wjybxx.concurrent中的构造器限定符构造器说明PromiseTask(Object task, IContext ctx, int options, IPromise<V> promise) PromiseTask(Object task, IContext ctx, int options, IPromise<V> promise, int taskType) protectedTaskBuilder(int type, Object task, IContext ctx) -
cn.wjybxx.sequential中IContext的使用
返回IContext的cn.wjybxx.sequential中的方法参数类型为IContext的cn.wjybxx.sequential中的方法修饰符和类型方法说明<X extends Throwable>
UniPromise<T> UniPromise.catching(Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends T> fallback, IContext ctx, int options) <X extends Throwable>
UniPromise<T> UniPromise.catchingAsync(Executor executor, Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends T> fallback, IContext ctx, int options) <U> UniPromise<U> UniPromise.composeApply(BiFunction<? super IContext, ? super T, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> UniPromise<U> UniPromise.composeApplyAsync(Executor executor, BiFunction<? super IContext, ? super T, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> UniPromise<U> UniPromise.composeCall(Function<? super IContext, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> UniPromise<U> UniPromise.composeCallAsync(Executor executor, Function<? super IContext, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <X extends Throwable>
UniPromise<T> UniPromise.composeCatching(Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends ICompletionStage<T>> fallback, IContext ctx, int options) <X extends Throwable>
UniPromise<T> UniPromise.composeCatchingAsync(Executor executor, Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends ICompletionStage<T>> fallback, IContext ctx, int options) <U> UniPromise<U> UniPromise.composeHandle(cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, ? super Throwable, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> UniPromise<U> UniPromise.composeHandleAsync(Executor executor, cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, ? super Throwable, ? extends ICompletionStage<U>> fn, IContext ctx, int options) voidvoidvoidvoid<U> UniPromise<U> UniPromise.handle(cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, Throwable, ? extends U> fn, IContext ctx, int options) <U> UniPromise<U> UniPromise.handleAsync(Executor executor, cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, Throwable, ? extends U> fn, IContext ctx, int options) static UniScheduledPromiseTask<?> UniScheduledPromiseTask.ofAction(Consumer<? super IContext> action, IContext ctx, int options, IScheduledPromise<?> promise, long id, long nextTriggerTime) static <V> UniScheduledPromiseTask<V> UniScheduledPromiseTask.ofFunction(Function<? super IContext, ? extends V> action, IContext ctx, int options, IScheduledPromise<V> promise, long id, long nextTriggerTime) voidUniPromise.onCompleted(BiConsumer<? super IFuture<T>, ? super IContext> action, IContext context) voidUniPromise.onCompleted(BiConsumer<? super IFuture<T>, ? super IContext> action, IContext context, int options) voidUniPromise.onCompletedAsync(Executor executor, BiConsumer<? super IFuture<T>, ? super IContext> action, IContext context) voidUniPromise.onCompletedAsync(Executor executor, BiConsumer<? super IFuture<T>, ? super IContext> action, IContext context, int options) AbstractUniScheduledExecutor.scheduleAction(Consumer<? super IContext> task, IContext ctx, long delay, TimeUnit unit) <V> IScheduledFuture<V> AbstractUniScheduledExecutor.scheduleFunc(Function<? super IContext, V> task, IContext ctx, long delay, TimeUnit unit) IFuture<?> AbstractUniExecutor.submitAction(Consumer<? super IContext> task, IContext ctx) IFuture<?> AbstractUniExecutor.submitAction(Consumer<? super IContext> task, IContext ctx, int options) IFuture<?> AbstractUniScheduledExecutor.submitAction(Consumer<? super IContext> task, IContext ctx) IFuture<?> AbstractUniScheduledExecutor.submitAction(Consumer<? super IContext> task, IContext ctx, int options) <V> IFuture<V> AbstractUniExecutor.submitFunc(Function<? super IContext, ? extends V> task, IContext ctx) <V> IFuture<V> AbstractUniExecutor.submitFunc(Function<? super IContext, ? extends V> task, IContext ctx, int options) <V> IFuture<V> AbstractUniScheduledExecutor.submitFunc(Function<? super IContext, ? extends V> task, IContext ctx) <V> IFuture<V> AbstractUniScheduledExecutor.submitFunc(Function<? super IContext, ? extends V> task, IContext ctx, int options) UniPromise.thenAccept(BiConsumer<? super IContext, ? super T> action, IContext ctx, int options) UniPromise.thenAcceptAsync(Executor executor, BiConsumer<? super IContext, ? super T> action, IContext ctx, int options) <U> UniPromise<U> UniPromise.thenApply(BiFunction<? super IContext, ? super T, ? extends U> fn, IContext ctx, int options) <U> UniPromise<U> UniPromise.thenApplyAsync(Executor executor, BiFunction<? super IContext, ? super T, ? extends U> fn, IContext ctx, int options) <U> UniPromise<U> <U> UniPromise<U> UniPromise.thenCallAsync(Executor executor, Function<? super IContext, ? extends U> fn, IContext ctx, int options) UniPromise.thenRunAsync(Executor executor, Consumer<? super IContext> action, IContext ctx, int options) UniPromise.whenComplete(cn.wjybxx.base.function.TriConsumer<? super IContext, ? super T, ? super Throwable> action, IContext ctx, int options) UniPromise.whenCompleteAsync(Executor executor, cn.wjybxx.base.function.TriConsumer<? super IContext, ? super T, ? super Throwable> action, IContext ctx, int options) 类型变量类型为IContext的cn.wjybxx.sequential中的方法参数修饰符和类型方法说明<X extends Throwable>
UniPromise<T> UniPromise.catching(Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends T> fallback) <X extends Throwable>
UniPromise<T> UniPromise.catching(Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends T> fallback, IContext ctx, int options) <X extends Throwable>
UniPromise<T> UniPromise.catchingAsync(Executor executor, Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends T> fallback) <X extends Throwable>
UniPromise<T> UniPromise.catchingAsync(Executor executor, Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends T> fallback, IContext ctx, int options) <U> UniPromise<U> UniPromise.composeApply(BiFunction<? super IContext, ? super T, ? extends ICompletionStage<U>> fn) <U> UniPromise<U> UniPromise.composeApply(BiFunction<? super IContext, ? super T, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> UniPromise<U> UniPromise.composeApplyAsync(Executor executor, BiFunction<? super IContext, ? super T, ? extends ICompletionStage<U>> fn) <U> UniPromise<U> UniPromise.composeApplyAsync(Executor executor, BiFunction<? super IContext, ? super T, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> UniPromise<U> UniPromise.composeCall(Function<? super IContext, ? extends ICompletionStage<U>> fn) <U> UniPromise<U> UniPromise.composeCall(Function<? super IContext, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> UniPromise<U> UniPromise.composeCallAsync(Executor executor, Function<? super IContext, ? extends ICompletionStage<U>> fn) <U> UniPromise<U> UniPromise.composeCallAsync(Executor executor, Function<? super IContext, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <X extends Throwable>
UniPromise<T> UniPromise.composeCatching(Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends ICompletionStage<T>> fallback) <X extends Throwable>
UniPromise<T> UniPromise.composeCatching(Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends ICompletionStage<T>> fallback, IContext ctx, int options) <X extends Throwable>
UniPromise<T> UniPromise.composeCatchingAsync(Executor executor, Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends ICompletionStage<T>> fallback) <X extends Throwable>
UniPromise<T> UniPromise.composeCatchingAsync(Executor executor, Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends ICompletionStage<T>> fallback, IContext ctx, int options) <U> UniPromise<U> UniPromise.composeHandle(cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, ? super Throwable, ? extends ICompletionStage<U>> fn) <U> UniPromise<U> UniPromise.composeHandle(cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, ? super Throwable, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> UniPromise<U> UniPromise.composeHandleAsync(Executor executor, cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, ? super Throwable, ? extends ICompletionStage<U>> fn) <U> UniPromise<U> UniPromise.composeHandleAsync(Executor executor, cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, ? super Throwable, ? extends ICompletionStage<U>> fn, IContext ctx, int options) voidvoidvoidvoid<U> UniPromise<U> UniPromise.handle(cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, Throwable, ? extends U> fn) <U> UniPromise<U> UniPromise.handle(cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, Throwable, ? extends U> fn, IContext ctx, int options) <U> UniPromise<U> UniPromise.handleAsync(Executor executor, cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, Throwable, ? extends U> fn) <U> UniPromise<U> UniPromise.handleAsync(Executor executor, cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, Throwable, ? extends U> fn, IContext ctx, int options) static UniScheduledPromiseTask<?> UniScheduledPromiseTask.ofAction(Consumer<? super IContext> action, IContext ctx, int options, IScheduledPromise<?> promise, long id, long nextTriggerTime) static <V> UniScheduledPromiseTask<V> UniScheduledPromiseTask.ofFunction(Function<? super IContext, ? extends V> action, IContext ctx, int options, IScheduledPromise<V> promise, long id, long nextTriggerTime) voidUniPromise.onCompleted(BiConsumer<? super IFuture<T>, ? super IContext> action, IContext context) voidUniPromise.onCompleted(BiConsumer<? super IFuture<T>, ? super IContext> action, IContext context, int options) voidUniPromise.onCompletedAsync(Executor executor, BiConsumer<? super IFuture<T>, ? super IContext> action, IContext context) voidUniPromise.onCompletedAsync(Executor executor, BiConsumer<? super IFuture<T>, ? super IContext> action, IContext context, int options) AbstractUniScheduledExecutor.scheduleAction(Consumer<? super IContext> task, IContext ctx, long delay, TimeUnit unit) <V> IScheduledFuture<V> AbstractUniScheduledExecutor.scheduleFunc(Function<? super IContext, V> task, IContext ctx, long delay, TimeUnit unit) IFuture<?> AbstractUniExecutor.submitAction(Consumer<? super IContext> task, IContext ctx) IFuture<?> AbstractUniExecutor.submitAction(Consumer<? super IContext> task, IContext ctx, int options) IFuture<?> AbstractUniScheduledExecutor.submitAction(Consumer<? super IContext> task, IContext ctx) IFuture<?> AbstractUniScheduledExecutor.submitAction(Consumer<? super IContext> task, IContext ctx, int options) <V> IFuture<V> AbstractUniExecutor.submitFunc(Function<? super IContext, ? extends V> task, IContext ctx) <V> IFuture<V> AbstractUniExecutor.submitFunc(Function<? super IContext, ? extends V> task, IContext ctx, int options) <V> IFuture<V> AbstractUniScheduledExecutor.submitFunc(Function<? super IContext, ? extends V> task, IContext ctx) <V> IFuture<V> AbstractUniScheduledExecutor.submitFunc(Function<? super IContext, ? extends V> task, IContext ctx, int options) UniPromise.thenAccept(BiConsumer<? super IContext, ? super T> action) UniPromise.thenAccept(BiConsumer<? super IContext, ? super T> action, IContext ctx, int options) UniPromise.thenAcceptAsync(Executor executor, BiConsumer<? super IContext, ? super T> action) UniPromise.thenAcceptAsync(Executor executor, BiConsumer<? super IContext, ? super T> action, IContext ctx, int options) <U> UniPromise<U> UniPromise.thenApply(BiFunction<? super IContext, ? super T, ? extends U> fn) <U> UniPromise<U> UniPromise.thenApply(BiFunction<? super IContext, ? super T, ? extends U> fn, IContext ctx, int options) <U> UniPromise<U> UniPromise.thenApplyAsync(Executor executor, BiFunction<? super IContext, ? super T, ? extends U> fn) <U> UniPromise<U> UniPromise.thenApplyAsync(Executor executor, BiFunction<? super IContext, ? super T, ? extends U> fn, IContext ctx, int options) <U> UniPromise<U> <U> UniPromise<U> <U> UniPromise<U> UniPromise.thenCallAsync(Executor executor, Function<? super IContext, ? extends U> fn) <U> UniPromise<U> UniPromise.thenCallAsync(Executor executor, Function<? super IContext, ? extends U> fn, IContext ctx, int options) UniPromise.thenRunAsync(Executor executor, Consumer<? super IContext> action) UniPromise.thenRunAsync(Executor executor, Consumer<? super IContext> action, IContext ctx, int options) UniPromise.whenComplete(cn.wjybxx.base.function.TriConsumer<? super IContext, ? super T, ? super Throwable> action) UniPromise.whenComplete(cn.wjybxx.base.function.TriConsumer<? super IContext, ? super T, ? super Throwable> action, IContext ctx, int options) UniPromise.whenCompleteAsync(Executor executor, cn.wjybxx.base.function.TriConsumer<? super IContext, ? super T, ? super Throwable> action) UniPromise.whenCompleteAsync(Executor executor, cn.wjybxx.base.function.TriConsumer<? super IContext, ? super T, ? super Throwable> action, IContext ctx, int options)