Callable interface - accepts one argument and possibly throws something
| Modifier and Type | Method and Description |
|---|---|
| public RET | |
| public static < Argument type ARG> void | invokeAll(ARG
The argument to pass to the arg, Collection<? extends Invoker<? super ARG, ?>> invoke(Object) methodThe invokers to scan - ignored if invokers)null/empty (also ignores null members)Invokes all the instances ignoring the return value. |
| public static < Argument type ARG> AbstractMap. | Returns: ASimpleImmutableEntry representing the first failed invocation - null if
all were successful (or none invoked).The argument to pass to the arg, Collection<? extends Invoker<? super ARG, ?>> invoke(Object) methodThe invokers to scan - ignored if invokers)null/empty (also ignores null members)Invokes all instances until 1st failure (if any) |
| public static < The argument type ARG> Invoker | Returns: The wrapperThe invokers to wrap - ignored if invokers)null/emptyWraps a bunch of Note all invokers are used and any thrown exceptions are accumulated and thrown as a single exception at the end of invoking all of them. |
| public static < The argument type ARG> Invoker | Returns: The wrapperThe invokers to wrap - ignored if invokers)null/emptyWraps a bunch of Note stops when first invoker throws an exception (otherwise invokes all) |
| invoke | back to summary |
|---|---|
| public RET invoke(ARG arg) throws Throwable | |
| invokeAll | back to summary |
|---|---|
| public static <ARG> void invokeAll(ARG arg, Collection<? extends Invoker<? super ARG, ?>> invokers) throws Throwable Invokes all the instances ignoring the return value. Any intermediate exceptions are accumulated and thrown at the end.
| |
| invokeTillFirstFailure | back to summary |
|---|---|
| public static <ARG> AbstractMap. Invokes all instances until 1st failure (if any)
| |
| wrapAll | back to summary |
|---|---|
| public static <ARG> Invoker Wraps a bunch of Note all invokers are used and any thrown exceptions are accumulated and thrown as a single exception at the end of invoking all of them.
| |
| wrapFirst | back to summary |
|---|---|
| public static <ARG> Invoker Wraps a bunch of Note stops when first invoker throws an exception (otherwise invokes all)
| |