Class CosIdLifecycleMachineIdGuarder
java.lang.Object
me.ahoo.cosid.spring.boot.starter.machine.CosIdLifecycleMachineIdGuarder
- All Implemented Interfaces:
org.springframework.context.Lifecycle
,org.springframework.context.Phased
,org.springframework.context.SmartLifecycle
public class CosIdLifecycleMachineIdGuarder
extends Object
implements org.springframework.context.SmartLifecycle
CosId Lifecycle MachineIdDistributor.
-
Field Summary
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE
-
Constructor Summary
ConstructorDescriptionCosIdLifecycleMachineIdGuarder
(CosIdProperties cosIdProperties, InstanceId instanceId, MachineIdGuarder machineIdGuarder) -
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
getPhase, isAutoStartup, stop
-
Constructor Details
-
CosIdLifecycleMachineIdGuarder
public CosIdLifecycleMachineIdGuarder(CosIdProperties cosIdProperties, InstanceId instanceId, MachineIdGuarder machineIdGuarder)
-
-
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
-