Interact | cacheManagement | caches | PatternStateCache | loaderWriter
The loaderWriter category contains the configuration of the loader that interacts with external repositories for the retrieval and persistence of event patterns.
className
- Description
The fully-qualified class name for this loader. This class must comply with the chosen cache manager's requirement.
- Default value
-
com.unicacorp.interact.cache.ehcache.loaderwriter. PatternStateEHCacheLoaderWriter
- Valid Values
A fully-qualified class name.
classPath
- Description
The path to the loader's class file. If you leave this value blank or the entry is invalid, the class path used for running Interact is used.
- Default value
None
- Valid Values
A valid class path.
writeMode
- Description
Specifies the mode for the writer to persist the new or updated event pattern states in the cache. Valid options are:
WRITE_THROUGH. Every time there is a new entry or an existing entry is updated, that entry is written into the repositories immediately.
WRITE_BEHIND. The cache manager waits for some time to collect a number of changes, and then persists them into the repositories in a batch.
- Default value
WRITE_THROUGH
- Valid Values
WRITE_THROUGH or WRITE_BEHIND.
batchSize
- Description
The maximum number of event pattern state objects the writer will persist in a batch. This property is used only when writeMode is set to WRITE_BEHIND.
- Default value
100
- Valid Values
Integer value.
maxDelayInSecs
- Description
The maximum time in seconds that the cache manager waits before an event pattern state object is persisted. This property is used only when writeMode is set to WRITE_BEHIND.
- Default value
5
- Valid Values
Integer value.