public interface Executor<EX extends Throwable>
| Modifier and Type | Interface and Description |
|---|---|
static class |
Executor.Default<EX extends Throwable> |
| Modifier and Type | Method and Description |
|---|---|
void |
complete(Runnable onSuccessLogics) |
default <E> void |
execute(E element,
Consumer<? super E> logic) |
default void |
execute(Runnable logic) |
default <E> void |
executeNullHandling(E element,
Consumer<? super E> logic,
Runnable nullCaseLogic) |
default <E> void |
executeNullIgnoring(E element,
Consumer<? super E> logic) |
default <E,R> R |
executeR(E element,
Function<? super E,R> logic) |
default <R> R |
executeR(Supplier<? extends R> logic) |
default <E,R> R |
executeRNullHandling(E element,
Function<? super E,R> logic,
Supplier<? extends R> nullCaseLogic) |
default <E,R> R |
executeRNullIgnoring(E element,
Function<? super E,R> logic) |
boolean |
handle(Throwable t) |
static Executor<Exception> |
New(BufferingCollector<? super Exception> collector) |
static <EX extends Throwable> |
New(Class<EX> exceptionType,
BufferingCollector<? super EX> collector) |
static <EX extends Throwable> |
New(Class<EX> exceptionType,
Consumer<? super EX> exceptionFinalizer) |
static Executor<Exception> |
New(Consumer<? super Exception> exceptionFinalizer) |
Executor<EX> |
reset() |
boolean handle(Throwable t)
void complete(Runnable onSuccessLogics)
default void execute(Runnable logic)
default <E> void execute(E element,
Consumer<? super E> logic)
default <E> void executeNullIgnoring(E element,
Consumer<? super E> logic)
default <E> void executeNullHandling(E element,
Consumer<? super E> logic,
Runnable nullCaseLogic)
default <R> R executeR(Supplier<? extends R> logic)
default <E,R> R executeR(E element,
Function<? super E,R> logic)
default <E,R> R executeRNullIgnoring(E element,
Function<? super E,R> logic)
default <E,R> R executeRNullHandling(E element,
Function<? super E,R> logic,
Supplier<? extends R> nullCaseLogic)
static Executor<Exception> New(BufferingCollector<? super Exception> collector)
static <EX extends Throwable> Executor<EX> New(Class<EX> exceptionType, BufferingCollector<? super EX> collector)
Copyright © 2022 MicroStream Software. All rights reserved.