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.
@FunctionalInterface public interface TaskDispatcher<TRANSACTION,EXCEPTION extends Exception>
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceTaskDispatcher.TransactionConsumer<TRANSACTION,EXCEPTION extends Exception>static interfaceTaskDispatcher.TransactionFunction<TRANSACTION,EXCEPTION extends Exception,PAYLOAD>
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidaccept(TaskDispatcher.TransactionConsumer<TRANSACTION,EXCEPTION> consumer)<PAYLOAD> PAYLOADapply(TaskDispatcher.TransactionFunction<TRANSACTION,EXCEPTION,PAYLOAD> function)static <TRANSACTION,EXCEPTION extends Exception>
TaskDispatcher<TRANSACTION,EXCEPTION>simple(Supplier<TRANSACTION> supplier)
-
-
-
Method Detail
-
accept
default void accept(TaskDispatcher.TransactionConsumer<TRANSACTION,EXCEPTION> consumer) throws EXCEPTION extends Exception
-
apply
<PAYLOAD> PAYLOAD apply(TaskDispatcher.TransactionFunction<TRANSACTION,EXCEPTION,PAYLOAD> function) throws EXCEPTION extends Exception
-
simple
static <TRANSACTION,EXCEPTION extends Exception> TaskDispatcher<TRANSACTION,EXCEPTION> simple(Supplier<TRANSACTION> supplier)
-
-