public class AnalyticsEventCacheFactory extends Object
| Constructor and Description |
|---|
AnalyticsEventCacheFactory(org.mapdb.DB regularEventsDb,
org.mapdb.DB violationsEventsDb) |
| Modifier and Type | Method and Description |
|---|---|
AnalyticsEventCache |
createPolicyViolationsCache(String name,
int cacheCapacity,
int violationThreshold)
Creates a Cache which internally uses a
SizeLimitedPartitionedQueue, with the
provided name, capacity and partition size |
AnalyticsEventCache |
createRegularEventCache(String name,
int cacheCapacity)
Creates a Cache which internally uses a simple
SizeLimitedQueue, with the provided
name and capacity |
public AnalyticsEventCacheFactory(org.mapdb.DB regularEventsDb,
org.mapdb.DB violationsEventsDb)
public AnalyticsEventCache createRegularEventCache(String name, int cacheCapacity)
SizeLimitedQueue, with the provided
name and capacityname - name of the cachecacheCapacity - max entries of the cacheAnalyticsEventCachepublic AnalyticsEventCache createPolicyViolationsCache(String name, int cacheCapacity, int violationThreshold)
SizeLimitedPartitionedQueue, with the
provided name, capacity and partition sizename - name of the cachecacheCapacity - max entries of the cacheviolationThreshold - value used for the size of the partitionAnalyticsEventCacheCopyright © 2014–2022 MuleSoft, Inc.. All rights reserved.