Class DefaultRetryHandler
java.lang.Object
com.broadleafcommerce.common.messaging.notification.DefaultRetryHandler
- All Implemented Interfaces:
RetryHandler
- Author:
- Jeff Fischer
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultRetryHandler
(NotificationStateRepository repository, NotificationHandler notificationHandler, DurableNotificationProperties properties, String messageType, org.springframework.scheduling.TaskScheduler scheduler, com.broadleafcommerce.common.extension.data.DataRouteReference reference) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
-
Constructor Details
-
DefaultRetryHandler
public DefaultRetryHandler(NotificationStateRepository repository, NotificationHandler notificationHandler, DurableNotificationProperties properties, String messageType, org.springframework.scheduling.TaskScheduler scheduler, com.broadleafcommerce.common.extension.data.DataRouteReference reference)
-
-
Method Details
-
addConsumers
Description copied from interface:RetryHandler
Register a list of consumers of retry handler lifecycle events.- Specified by:
addConsumers
in interfaceRetryHandler
- Parameters:
consumers
- Consumers of retry handler lifecycle events
-
start
public void start()Description copied from interface:RetryHandler
Commence the scheduled processing via a new thread- Specified by:
start
in interfaceRetryHandler
-
stop
public void stop()Description copied from interface:RetryHandler
Stop scheduled processing and exit the processing thread- Specified by:
stop
in interfaceRetryHandler
-
execute
public void execute()Description copied from interface:RetryHandler
Perform the retry processing logic- Specified by:
execute
in interfaceRetryHandler
-