Interface RetryHandler
- All Known Implementing Classes:
DefaultRetryHandler
public interface RetryHandler
Retry notification on a set schedule for unacknowledged
NotificationStateAware instances
belonging to a specific NotificationStateRepository instance.- Author:
- Jeff Fischer
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidaddConsumers(List<Consumer<RetryHandlerStatus>> consumers) Register a list of consumers of retry handler lifecycle events.voidexecute()Perform the retry processing logicvoidstart()Commence the scheduled processing via a new threadvoidstop()Stop scheduled processing and exit the processing thread
-
Method Details
-
start
void start()Commence the scheduled processing via a new thread -
stop
void stop()Stop scheduled processing and exit the processing thread -
execute
void execute()Perform the retry processing logic -
addConsumers
Register a list of consumers of retry handler lifecycle events.- Parameters:
consumers- Consumers of retry handler lifecycle events- Throws:
UnsupportedOperationException- if not supported by the handler
-