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 TypeMethodDescriptionvoiddispatch(Dispatcher dispatcher) default booleanisDeferred(Dispatcher dispatcher) Allows to deferdispatchingan item even if it is pending.default voidnotifyFinalFailure(Dispatcher dispatcher, Exception cause) The default implementation does nothing.
-
Method Details
-
dispatch
- Throws:
Exception
-
isDeferred
Allows to deferdispatchingan 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
-