Interface TaskDispatcher<TRANSACTION,EXCEPTION extends Exception>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interface -
Method Summary
Modifier and TypeMethodDescriptiondefault void<PAYLOAD> PAYLOADapply(TaskDispatcher.TransactionFunction<TRANSACTION, EXCEPTION, PAYLOAD> function) static <TRANSACTION,EXCEPTION extends Exception>
TaskDispatcher<TRANSACTION, EXCEPTION>
-
Method Details
-
accept
default void accept(TaskDispatcher.TransactionConsumer<TRANSACTION, EXCEPTION> consumer) throws EXCEPTION- Throws:
EXCEPTION
-
apply
<PAYLOAD> PAYLOAD apply(TaskDispatcher.TransactionFunction<TRANSACTION, EXCEPTION, throws EXCEPTIONPAYLOAD> function) - Throws:
EXCEPTION
-
simple
static <TRANSACTION,EXCEPTION extends Exception> TaskDispatcher<TRANSACTION,EXCEPTION> simple(Supplier<TRANSACTION> supplier)
-