public interface ObjectStoreManager
Modifier and Type | Field and Description |
---|---|
static int |
UNBOUNDED |
Modifier and Type | Method and Description |
---|---|
void |
disposeStore(ObjectStore<? extends Serializable> store)
Delete all objects from the partition
|
<T extends ObjectStore<? extends Serializable>> |
getObjectStore(String name)
Return the partition of the default in-memory store with the given name, creating it
if necessary.
|
<T extends ObjectStore<? extends Serializable>> |
getObjectStore(String name,
boolean isPersistent)
Return the partition of the default in-memory or persistent store with the given name, creating it
if necessary.
|
<T extends ObjectStore<? extends Serializable>> |
getObjectStore(String name,
boolean isPersistent,
int maxEntries,
int entryTTL,
int expirationInterval)
Return the monitored partition of the default in-memory or persistent store with the given name, creating it
if necessary.
|
static final int UNBOUNDED
<T extends ObjectStore<? extends Serializable>> T getObjectStore(String name)
name
- the name of the object storeObjectStore
<T extends ObjectStore<? extends Serializable>> T getObjectStore(String name, boolean isPersistent)
name
- the name of the object storeisPersistent
- whether it should be in memory or persistentObjectStore
<T extends ObjectStore<? extends Serializable>> T getObjectStore(String name, boolean isPersistent, int maxEntries, int entryTTL, int expirationInterval)
name
- the name of the object storeisPersistent
- whether it should be in memory or persistentmaxEntries
- what's the max number of entries allowed. Exceeding entries will be removed when expiration thread runsentryTTL
- entry timeout in milliseconds.expirationInterval
- how frequently should the expiration thread runObjectStore
void disposeStore(ObjectStore<? extends Serializable> store) throws ObjectStoreException
ObjectStoreException
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.