Package io.foldright.cffu2
Class CffuFactory.IterableOps
java.lang.Object
io.foldright.cffu2.CffuFactory.IterableOps
- Enclosing class:
CffuFactory
The
Iterable-based variants (including Collection, List, etc.) of
same-named varargs methods from CffuFactory.
These methods handle multiple actions and Futures with the same type (aka. homogeneous).-
Method Summary
Modifier and TypeMethodDescriptionallFailFastOf(Iterable<? extends CompletionStage<?>> cfs) Iterable variant ofCffuFactory.allFailFastOf(CompletionStage[]).allOf(Iterable<? extends CompletionStage<?>> cfs) Iterable variant ofCffuFactory.allOf(CompletionStage[]).allResultsFailFastOf(Iterable<? extends CompletionStage<? extends T>> cfs) Iterable variant ofCffuFactory.allResultsFailFastOf(CompletionStage[]).allResultsOf(Iterable<? extends CompletionStage<? extends T>> cfs) Iterable variant ofCffuFactory.allResultsOf(java.util.concurrent.CompletionStage<? extends T>...).allSuccessResultsOf(T valueIfFailed, Iterable<? extends CompletionStage<? extends T>> cfs) Iterable variant ofCffuFactory.allSuccessResultsOf(Object, CompletionStage[]).<T> Cffu<T> anyOf(Iterable<? extends CompletionStage<? extends T>> cfs) Iterable variant ofCffuFactory.anyOf(CompletionStage[]).<T> Cffu<T> anySuccessOf(Iterable<? extends CompletionStage<? extends T>> cfs) Iterable variant ofCffuFactory.anySuccessOf(CompletionStage[]).mostSuccessResultsOf(T valueIfNotSuccess, long timeout, TimeUnit unit, Iterable<? extends CompletionStage<? extends T>> cfs) Iterable variant ofCffuFactory.mostSuccessResultsOf(Object, long, TimeUnit, CompletionStage[]).mRunAnyAsync(Iterable<? extends Runnable> actions) Iterable variant ofCffuFactory.mRunAnyAsync(Runnable...).mRunAnyAsync(Iterable<? extends Runnable> actions, Executor executor) Iterable variant ofCffuFactory.mRunAnyAsync(Executor, Runnable...).mRunAnySuccessAsync(Iterable<? extends Runnable> actions) Iterable variant ofCffuFactory.mRunAnySuccessAsync(Runnable...).mRunAnySuccessAsync(Iterable<? extends Runnable> actions, Executor executor) Iterable variant ofCffuFactory.mRunAnySuccessAsync(Executor, Runnable...).Iterable variant ofCffuFactory.mRunAsync(Runnable...).Iterable variant ofCffuFactory.mRunAsync(Executor, Runnable...).mRunFailFastAsync(Iterable<? extends Runnable> actions) Iterable variant ofCffuFactory.mRunFailFastAsync(Runnable...).mRunFailFastAsync(Iterable<? extends Runnable> actions, Executor executor) Iterable variant ofCffuFactory.mRunFailFastAsync(Executor, Runnable...).mSupplyAllSuccessAsync(E valueIfFailed, Iterable<? extends Supplier<? extends E>> suppliers) Iterable variant ofCffuFactory.mSupplyAllSuccessAsync(Object, Supplier[]).mSupplyAllSuccessAsync(E valueIfFailed, Iterable<? extends Supplier<? extends E>> suppliers, Executor executor) Iterable variant ofCffuFactory.mSupplyAllSuccessAsync(Executor, Object, Supplier[]).<T> Cffu<T> mSupplyAnyAsync(Iterable<? extends Supplier<? extends T>> suppliers) Iterable variant ofCffuFactory.mSupplyAnyAsync(Supplier[]).<T> Cffu<T> mSupplyAnyAsync(Iterable<? extends Supplier<? extends T>> suppliers, Executor executor) Iterable variant ofCffuFactory.mSupplyAnyAsync(Executor, Supplier[]).<T> Cffu<T> mSupplyAnySuccessAsync(Iterable<? extends Supplier<? extends T>> suppliers) Iterable variant ofCffuFactory.mSupplyAnySuccessAsync(Supplier[]).<T> Cffu<T> mSupplyAnySuccessAsync(Iterable<? extends Supplier<? extends T>> suppliers, Executor executor) Iterable variant ofCffuFactory.mSupplyAnySuccessAsync(Executor, Supplier[]).mSupplyAsync(Iterable<? extends Supplier<? extends E>> suppliers) Iterable variant ofCffuFactory.mSupplyAsync(Supplier[]).mSupplyAsync(Iterable<? extends Supplier<? extends E>> suppliers, Executor executor) Iterable variant ofCffuFactory.mSupplyAsync(Executor, Supplier[]).mSupplyFailFastAsync(Iterable<? extends Supplier<? extends E>> suppliers) Iterable variant ofCffuFactory.mSupplyFailFastAsync(Supplier[]).mSupplyFailFastAsync(Iterable<? extends Supplier<? extends E>> suppliers, Executor executor) Iterable variant ofCffuFactory.mSupplyFailFastAsync(Executor, Supplier[]).mSupplyMostSuccessAsync(E valueIfNotSuccess, long timeout, TimeUnit unit, Iterable<? extends Supplier<? extends E>> suppliers) Iterable variant ofCffuFactory.mSupplyMostSuccessAsync(Object, long, TimeUnit, Supplier[]).mSupplyMostSuccessAsync(E valueIfNotSuccess, long timeout, TimeUnit unit, Iterable<? extends Supplier<? extends E>> suppliers, Executor executor) Iterable variant ofCffuFactory.mSupplyMostSuccessAsync(Executor, Object, long, TimeUnit, Supplier[]).
-
Method Details
-
mSupplyFailFastAsync
@CheckReturnValue(explanation="should use the returned MCffu; otherwise, prefer simple method `mRunAsync`") public <E> MCffu<E,List<E>> mSupplyFailFastAsync(Iterable<? extends Supplier<? extends E>> suppliers) Iterable variant ofCffuFactory.mSupplyFailFastAsync(Supplier[]). -
mSupplyFailFastAsync
@CheckReturnValue(explanation="should use the returned MCffu; otherwise, prefer simple method `mRunAsync`") public <E> MCffu<E,List<E>> mSupplyFailFastAsync(Iterable<? extends Supplier<? extends E>> suppliers, Executor executor) Iterable variant ofCffuFactory.mSupplyFailFastAsync(Executor, Supplier[]). -
mSupplyAllSuccessAsync
@CheckReturnValue(explanation="should use the returned MCffu; otherwise, prefer simple method `mRunAsync`") public <E> MCffu<E,List<E>> mSupplyAllSuccessAsync(@Nullable E valueIfFailed, Iterable<? extends Supplier<? extends E>> suppliers) Iterable variant ofCffuFactory.mSupplyAllSuccessAsync(Object, Supplier[]). -
mSupplyAllSuccessAsync
@CheckReturnValue(explanation="should use the returned MCffu; otherwise, prefer simple method `mRunAsync`") public <E> MCffu<E,List<E>> mSupplyAllSuccessAsync(@Nullable E valueIfFailed, Iterable<? extends Supplier<? extends E>> suppliers, Executor executor) Iterable variant ofCffuFactory.mSupplyAllSuccessAsync(Executor, Object, Supplier[]). -
mSupplyMostSuccessAsync
@CheckReturnValue(explanation="should use the returned MCffu; otherwise, prefer simple method `mRunAsync`") public <E> MCffu<E,List<E>> mSupplyMostSuccessAsync(@Nullable E valueIfNotSuccess, long timeout, TimeUnit unit, Iterable<? extends Supplier<? extends E>> suppliers) Iterable variant ofCffuFactory.mSupplyMostSuccessAsync(Object, long, TimeUnit, Supplier[]). -
mSupplyMostSuccessAsync
@CheckReturnValue(explanation="should use the returned MCffu; otherwise, prefer simple method `mRunAsync`") public <E> MCffu<E,List<E>> mSupplyMostSuccessAsync(@Nullable E valueIfNotSuccess, long timeout, TimeUnit unit, Iterable<? extends Supplier<? extends E>> suppliers, Executor executor) Iterable variant ofCffuFactory.mSupplyMostSuccessAsync(Executor, Object, long, TimeUnit, Supplier[]). -
mSupplyAsync
@CheckReturnValue(explanation="should use the returned MCffu; otherwise, prefer simple method `mRunAsync`") public <E> MCffu<E,List<E>> mSupplyAsync(Iterable<? extends Supplier<? extends E>> suppliers) Iterable variant ofCffuFactory.mSupplyAsync(Supplier[]). -
mSupplyAsync
@CheckReturnValue(explanation="should use the returned MCffu; otherwise, prefer simple method `mRunAsync`") public <E> MCffu<E,List<E>> mSupplyAsync(Iterable<? extends Supplier<? extends E>> suppliers, Executor executor) Iterable variant ofCffuFactory.mSupplyAsync(Executor, Supplier[]). -
mSupplyAnySuccessAsync
@CheckReturnValue(explanation="should use the returned Cffu; otherwise, prefer simple method `mRunAsync`") public <T> Cffu<T> mSupplyAnySuccessAsync(Iterable<? extends Supplier<? extends T>> suppliers) Iterable variant ofCffuFactory.mSupplyAnySuccessAsync(Supplier[]). -
mSupplyAnySuccessAsync
@CheckReturnValue(explanation="should use the returned Cffu; otherwise, prefer simple method `mRunAsync`") public <T> Cffu<T> mSupplyAnySuccessAsync(Iterable<? extends Supplier<? extends T>> suppliers, Executor executor) Iterable variant ofCffuFactory.mSupplyAnySuccessAsync(Executor, Supplier[]). -
mSupplyAnyAsync
@CheckReturnValue(explanation="should use the returned Cffu; otherwise, prefer simple method `mRunAsync`") public <T> Cffu<T> mSupplyAnyAsync(Iterable<? extends Supplier<? extends T>> suppliers) Iterable variant ofCffuFactory.mSupplyAnyAsync(Supplier[]). -
mSupplyAnyAsync
@CheckReturnValue(explanation="should use the returned Cffu; otherwise, prefer simple method `mRunAsync`") public <T> Cffu<T> mSupplyAnyAsync(Iterable<? extends Supplier<? extends T>> suppliers, Executor executor) Iterable variant ofCffuFactory.mSupplyAnyAsync(Executor, Supplier[]). -
mRunFailFastAsync
@CheckReturnValue(explanation="should use the returned Cffu; otherwise, prefer simple method `mRunAsync`") public Cffu<Void> mRunFailFastAsync(Iterable<? extends Runnable> actions) Iterable variant ofCffuFactory.mRunFailFastAsync(Runnable...). -
mRunFailFastAsync
@CheckReturnValue(explanation="should use the returned Cffu; otherwise, prefer simple method `mRunAsync`") public Cffu<Void> mRunFailFastAsync(Iterable<? extends Runnable> actions, Executor executor) Iterable variant ofCffuFactory.mRunFailFastAsync(Executor, Runnable...). -
mRunAsync
Iterable variant ofCffuFactory.mRunAsync(Runnable...). -
mRunAsync
Iterable variant ofCffuFactory.mRunAsync(Executor, Runnable...). -
mRunAnySuccessAsync
@CheckReturnValue(explanation="should use the returned Cffu; otherwise, prefer simple method `mRunAsync`") public Cffu<Void> mRunAnySuccessAsync(Iterable<? extends Runnable> actions) Iterable variant ofCffuFactory.mRunAnySuccessAsync(Runnable...). -
mRunAnySuccessAsync
@CheckReturnValue(explanation="should use the returned Cffu; otherwise, prefer simple method `mRunAsync`") public Cffu<Void> mRunAnySuccessAsync(Iterable<? extends Runnable> actions, Executor executor) Iterable variant ofCffuFactory.mRunAnySuccessAsync(Executor, Runnable...). -
mRunAnyAsync
@CheckReturnValue(explanation="should use the returned Cffu; otherwise, prefer simple method `mRunAsync`") public Cffu<Void> mRunAnyAsync(Iterable<? extends Runnable> actions) Iterable variant ofCffuFactory.mRunAnyAsync(Runnable...). -
mRunAnyAsync
@CheckReturnValue(explanation="should use the returned Cffu; otherwise, prefer simple method `mRunAsync`") public Cffu<Void> mRunAnyAsync(Iterable<? extends Runnable> actions, Executor executor) Iterable variant ofCffuFactory.mRunAnyAsync(Executor, Runnable...). -
allResultsFailFastOf
@Contract(pure=true) public <T> MCffu<T,List<T>> allResultsFailFastOf(Iterable<? extends CompletionStage<? extends T>> cfs) Iterable variant ofCffuFactory.allResultsFailFastOf(CompletionStage[]). -
allSuccessResultsOf
@Contract(pure=true) public <T> MCffu<T,List<T>> allSuccessResultsOf(@Nullable T valueIfFailed, Iterable<? extends CompletionStage<? extends T>> cfs) Iterable variant ofCffuFactory.allSuccessResultsOf(Object, CompletionStage[]). -
mostSuccessResultsOf
@Contract(pure=true) public <T> MCffu<T,List<T>> mostSuccessResultsOf(@Nullable T valueIfNotSuccess, long timeout, TimeUnit unit, Iterable<? extends CompletionStage<? extends T>> cfs) Iterable variant ofCffuFactory.mostSuccessResultsOf(Object, long, TimeUnit, CompletionStage[]). -
allResultsOf
@Contract(pure=true) public <T> MCffu<T,List<T>> allResultsOf(Iterable<? extends CompletionStage<? extends T>> cfs) Iterable variant ofCffuFactory.allResultsOf(java.util.concurrent.CompletionStage<? extends T>...). -
allFailFastOf
Iterable variant ofCffuFactory.allFailFastOf(CompletionStage[]). -
allOf
Iterable variant ofCffuFactory.allOf(CompletionStage[]). -
anySuccessOf
@Contract(pure=true) public <T> Cffu<T> anySuccessOf(Iterable<? extends CompletionStage<? extends T>> cfs) Iterable variant ofCffuFactory.anySuccessOf(CompletionStage[]). -
anyOf
Iterable variant ofCffuFactory.anyOf(CompletionStage[]).
-