Class DefaultRetryClusterServiceLifecycleManager
java.lang.Object
com.broadleafcommerce.common.messaging.notification.DefaultRetryClusterServiceLifecycleManager
- All Implemented Interfaces:
org.springframework.context.Lifecycle
,org.springframework.context.Phased
,org.springframework.context.SmartLifecycle
public class DefaultRetryClusterServiceLifecycleManager
extends Object
implements org.springframework.context.SmartLifecycle
Responsible for setting a late-phase requirement on all instances of
RetryClusterService
.
Denotes that the Spring late lifecycle requirement for launching a RetryClusterService
has been met. See RetryClusterServiceRequirementType.LATE_PHASE_SPRING
.-
Field Summary
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultRetryClusterServiceLifecycleManager
(List<RetryClusterService> clusterServices) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.context.SmartLifecycle
isAutoStartup, stop
-
Constructor Details
-
DefaultRetryClusterServiceLifecycleManager
-
-
Method Details
-
start
public void start()- Specified by:
start
in interfaceorg.springframework.context.Lifecycle
-
stop
public void stop()- Specified by:
stop
in interfaceorg.springframework.context.Lifecycle
-
isRunning
public boolean isRunning()- Specified by:
isRunning
in interfaceorg.springframework.context.Lifecycle
-
getPhase
public int getPhase()- Specified by:
getPhase
in interfaceorg.springframework.context.Phased
- Specified by:
getPhase
in interfaceorg.springframework.context.SmartLifecycle
-