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 TypeMethodDescriptionvoidaddConsumers(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
-
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:RetryHandlerRegister a list of consumers of retry handler lifecycle events.- Specified by:
addConsumersin interfaceRetryHandler- Parameters:
consumers- Consumers of retry handler lifecycle events
-
start
public void start()Description copied from interface:RetryHandlerCommence the scheduled processing via a new thread- Specified by:
startin interfaceRetryHandler
-
stop
public void stop()Description copied from interface:RetryHandlerStop scheduled processing and exit the processing thread- Specified by:
stopin interfaceRetryHandler
-
execute
public void execute()Description copied from interface:RetryHandlerPerform the retry processing logic- Specified by:
executein interfaceRetryHandler
-