public class ObjectStoreCachingStrategy extends AbstractCachingStrategy implements InvalidatableCachingStrategy, org.mule.runtime.api.lifecycle.Lifecycle
CachingStrategy using an ObjectStore as a cache.| Modifier and Type | Field and Description |
|---|---|
static String |
OBJECT_STORE_SUFFIX |
logger, muleContext| Constructor and Description |
|---|
ObjectStoreCachingStrategy() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
org.mule.runtime.api.store.ObjectStore<org.mule.runtime.core.api.event.CoreEvent> |
getObjectStore() |
void |
initialise() |
void |
invalidate()
Invalidates all the entries in the cache
|
void |
invalidate(String key)
Invalidates a given entry from the cache if it exists, otherwise ignores it.
|
protected org.mule.runtime.core.api.event.CoreEvent |
retrieve(String key) |
void |
setEntryTTL(int entryTTL) |
void |
setExpirationInterval(int expirationInterval) |
void |
setMaxEntries(int maxEntries) |
void |
setName(String name) |
void |
setObjectStore(org.mule.runtime.api.store.ObjectStore<org.mule.runtime.core.api.event.CoreEvent> store) |
void |
setObjectStoreManager(org.mule.runtime.api.store.ObjectStoreManager objectStoreManager) |
void |
setPersistent(boolean persistent) |
void |
setPrivateObjectStore(org.mule.runtime.api.store.ObjectStore<org.mule.runtime.core.api.event.CoreEvent> privateObjectStore) |
void |
start() |
void |
stop() |
protected void |
store(String key,
org.mule.runtime.core.api.event.CoreEvent value) |
getKeyGenerator, getLock, getLockFactory, getLockScheduler, getMuleEventCopier, getName, getResponseGenerator, isSynchronizedAccess, process, setKeyGenerator, setLockFactory, setMuleContext, setMuleEventCopier, setResponseGenerator, setSchedulerService, setSynchronizedAccess, transformProcessorpublic static final String OBJECT_STORE_SUFFIX
public org.mule.runtime.api.store.ObjectStore<org.mule.runtime.core.api.event.CoreEvent> getObjectStore()
public void setObjectStoreManager(org.mule.runtime.api.store.ObjectStoreManager objectStoreManager)
public void setName(String name)
setName in class AbstractCachingStrategypublic void setPersistent(boolean persistent)
public void setEntryTTL(int entryTTL)
public void setMaxEntries(int maxEntries)
public void setExpirationInterval(int expirationInterval)
public void setObjectStore(org.mule.runtime.api.store.ObjectStore<org.mule.runtime.core.api.event.CoreEvent> store)
public void setPrivateObjectStore(org.mule.runtime.api.store.ObjectStore<org.mule.runtime.core.api.event.CoreEvent> privateObjectStore)
public void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableinitialise in class AbstractCachingStrategyorg.mule.runtime.api.lifecycle.InitialisationExceptionpublic void start()
throws org.mule.runtime.api.exception.MuleException
start in interface org.mule.runtime.api.lifecycle.Startablestart in class AbstractCachingStrategyorg.mule.runtime.api.exception.MuleExceptionpublic void stop()
throws org.mule.runtime.api.exception.MuleException
stop in interface org.mule.runtime.api.lifecycle.Stoppablestop in class AbstractCachingStrategyorg.mule.runtime.api.exception.MuleExceptionpublic void dispose()
dispose in interface org.mule.runtime.api.lifecycle.Disposableprotected void store(String key, org.mule.runtime.core.api.event.CoreEvent value)
store in class AbstractCachingStrategyprotected org.mule.runtime.core.api.event.CoreEvent retrieve(String key)
retrieve in class AbstractCachingStrategypublic void invalidate()
InvalidatableCachingStrategyinvalidate in interface InvalidatableCachingStrategypublic void invalidate(String key)
InvalidatableCachingStrategyinvalidate in interface InvalidatableCachingStrategykey - indicates the cache entry to invalidate. Cannot be null.Copyright © 2006–2022 MuleSoft, Inc.. All rights reserved.