Package de.otto.synapse.edison.state
Class StatusIndicatingStateRepository<T>
java.lang.Object
de.otto.synapse.state.DelegatingStateRepository<T>
de.otto.synapse.edison.state.StatusIndicatingStateRepository<T>
- All Implemented Interfaces:
de.otto.edison.status.indicator.StatusDetailIndicator,de.otto.synapse.state.StateRepository<T>,AutoCloseable,org.springframework.context.Lifecycle,org.springframework.context.Phased,org.springframework.context.SmartLifecycle
public class StatusIndicatingStateRepository<T>
extends de.otto.synapse.state.DelegatingStateRepository<T>
implements de.otto.edison.status.indicator.StatusDetailIndicator, org.springframework.context.SmartLifecycle
-
Field Summary
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
ConstructorsConstructorDescriptionStatusIndicatingStateRepository(de.otto.synapse.state.StateRepository<T> stateRepository, String repositoryName) -
Method Summary
Methods inherited from class de.otto.synapse.state.DelegatingStateRepository
clear, compute, consumeAll, get, getName, keySet, put, remove, sizeMethods 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
-
StatusIndicatingStateRepository
-
-
Method Details
-
statusDetails
- Specified by:
statusDetailsin interfacede.otto.edison.status.indicator.StatusDetailIndicator
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfacede.otto.synapse.state.StateRepository<T>- Overrides:
closein classde.otto.synapse.state.DelegatingStateRepository<T>- Throws:
Exception
-
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
-