Class StateRepositoryStatusDetailIndicator
java.lang.Object
de.otto.synapse.edison.statusdetail.StateRepositoryStatusDetailIndicator
- All Implemented Interfaces:
de.otto.edison.status.indicator.StatusDetailIndicator,org.springframework.context.Lifecycle,org.springframework.context.Phased,org.springframework.context.SmartLifecycle
public class StateRepositoryStatusDetailIndicator
extends Object
implements de.otto.edison.status.indicator.StatusDetailIndicator, org.springframework.context.SmartLifecycle
This status detail indicator indicates the number of entries in the given state repository.
-
Field Summary
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
ConstructorsConstructorDescriptionStateRepositoryStatusDetailIndicator(de.otto.synapse.state.StateRepository<?> stateRepository, String repositoryName) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.SmartLifecycle
stop
-
Constructor Details
-
StateRepositoryStatusDetailIndicator
public StateRepositoryStatusDetailIndicator(de.otto.synapse.state.StateRepository<?> stateRepository, String repositoryName)
-
-
Method Details
-
statusDetails
- Specified by:
statusDetailsin interfacede.otto.edison.status.indicator.StatusDetailIndicator
-
isAutoStartup
public boolean isAutoStartup()- Specified by:
isAutoStartupin interfaceorg.springframework.context.SmartLifecycle
-
start
public void start()- Specified by:
startin interfaceorg.springframework.context.Lifecycle
-
stop
public void stop()- Specified by:
stopin interfaceorg.springframework.context.Lifecycle
-
isRunning
public boolean isRunning()- Specified by:
isRunningin interfaceorg.springframework.context.Lifecycle
-
getPhase
public int getPhase()- Specified by:
getPhasein interfaceorg.springframework.context.Phased- Specified by:
getPhasein interfaceorg.springframework.context.SmartLifecycle
-