@ManagedResource(description="Memory based state repository") public class MemoryStateRepository extends org.apache.camel.support.service.ServiceSupport implements org.apache.camel.spi.StateRepository<String,String>
MemoryStateRepository
class is a memory-based implementation of a StateRepository
.Constructor and Description |
---|
MemoryStateRepository() |
Modifier and Type | Method and Description |
---|---|
protected void |
doStart() |
protected void |
doStop() |
String |
getState(String key) |
void |
setState(String key,
String value) |
build, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
@ManagedOperation(description="Adds the value of the given key to the store") public void setState(String key, String value)
@ManagedOperation(description="Gets the value of the given key from store") public String getState(String key)
protected void doStart() throws Exception
doStart
in class org.apache.camel.support.service.BaseService
Exception
Apache Camel