public class ObjectStoreSettings extends Object
ObjectStore
instance behave.| Modifier and Type | Class and Description |
|---|---|
static class |
ObjectStoreSettings.Builder
A Builder for creating
ObjectStoreSettings |
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_EXPIRATION_INTERVAL |
| Modifier and Type | Method and Description |
|---|---|
static ObjectStoreSettings.Builder |
builder() |
Optional<Long> |
getEntryTTL()
The entry timeout in milliseconds.
|
long |
getExpirationInterval()
How frequently (in milliseconds) should the expiration thread run.
|
Optional<Integer> |
getMaxEntries()
Returns the max number of entries allowed.
|
boolean |
isPersistent()
Returns Whether the store is persistent or transient.
|
static ObjectStoreSettings |
unmanagedPersistent()
Creates a new
ObjectStoreSettings instance which describes a persistent store with no expiration or boundaries. |
static ObjectStoreSettings |
unmanagedTransient()
Creates a new
ObjectStoreSettings instance which describes a transient store with no expiration or boundaries. |
public static ObjectStoreSettings.Builder builder()
ObjectStoreSettings.Builderpublic static ObjectStoreSettings unmanagedTransient()
ObjectStoreSettings instance which describes a transient store with no expiration or boundaries.ObjectStoreSettingspublic static ObjectStoreSettings unmanagedPersistent()
ObjectStoreSettings instance which describes a persistent store with no expiration or boundaries.ObjectStoreSettingspublic boolean isPersistent()
ObjectStoreSettings.Builder.persistent(boolean), then it will
default to truepublic Optional<Integer> getMaxEntries()
ObjectStore will have no size boundaries.public Optional<Long> getEntryTTL()
ObjectStore will have no time boundaries.public long getExpirationInterval()
ObjectStoreSettings.Builder.expirationInterval(Long), it will default to DEFAULT_EXPIRATION_INTERVALCopyright © 2017 MuleSoft, Inc.. All rights reserved.