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 void
addConsumers
(List<Consumer<RetryHandlerStatus>> consumers) Register a list of consumers of retry handler lifecycle events.void
execute()
Perform the retry processing logicvoid
start()
Commence the scheduled processing via a new threadvoid
stop()
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
-