java.lang.Object
org.mule.sdk.api.store.ObjectStoreSettings
Immutable object which contains settings parameters regarding how should a particular
ObjectStore instance behave.- Since:
- 1.0
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectStoreSettings.Builderbuilder()The entry timeout in milliseconds.longHow frequently (in milliseconds) should the expiration thread run.Returns the max number of entries allowed.booleanReturns Whether the store is persistent or transient.static ObjectStoreSettingsCreates a newObjectStoreSettingsinstance which describes a persistent store with no expiration or boundaries.static ObjectStoreSettingsCreates a newObjectStoreSettingsinstance which describes a transient store with no expiration or boundaries.
-
Field Details
-
DEFAULT_EXPIRATION_INTERVAL
public static final long DEFAULT_EXPIRATION_INTERVAL
-
-
Method Details
-
builder
- Returns:
- a new
ObjectStoreSettings.Builder
-
unmanagedTransient
Creates a newObjectStoreSettingsinstance which describes a transient store with no expiration or boundaries.- Returns:
- a new
ObjectStoreSettings
-
unmanagedPersistent
Creates a newObjectStoreSettingsinstance which describes a persistent store with no expiration or boundaries.- Returns:
- a new
ObjectStoreSettings
-
isPersistent
public boolean isPersistent()Returns Whether the store is persistent or transient. If not set throughObjectStoreSettings.Builder.persistent(boolean), then it will default totrue -
getMaxEntries
Returns the max number of entries allowed. Exceeding entries will be removed when expiration thread runs. If absent, then the describedObjectStorewill have no size boundaries. -
getEntryTTL
The entry timeout in milliseconds. If absent, then the describedObjectStorewill have no time boundaries. -
getExpirationInterval
public long getExpirationInterval()How frequently (in milliseconds) should the expiration thread run. If not set throughObjectStoreSettings.Builder.expirationInterval(Long), it will default toDEFAULT_EXPIRATION_INTERVAL
-