Package com.exedio.cope.pattern
Interface Dispatchable
- All Known Subinterfaces:
DispatchDeferrable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispatch
(Dispatcher dispatcher) default boolean
isDeferred
(Dispatcher dispatcher) Allows to deferdispatching
an item even if it is pending.default void
notifyFinalFailure
(Dispatcher dispatcher, Exception cause) The default implementation does nothing.
-
Method Details
-
dispatch
- Throws:
Exception
-
isDeferred
Allows to deferdispatching
an item even if it is pending.The default implementation returns false.
- Parameters:
dispatcher
- used by subclasses
-
notifyFinalFailure
The default implementation does nothing.- Parameters:
dispatcher
- used by subclassescause
- used by subclasses
-