|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.client.ConfigurationMethodRef
public class ConfigurationMethodRef
Holds configuration information for data caches for use in method invocations in the from-clause.
Constructor Summary | |
---|---|
ConfigurationMethodRef()
|
Method Summary | |
---|---|
ConfigurationDataCache |
getDataCacheDesc()
Return a method invocation result data cache descriptor. |
void |
setExpiryTimeCache(double maxAgeSeconds,
double purgeIntervalSeconds)
Configures an expiry-time cache of the given maximum age in seconds and purge interval in seconds. |
void |
setExpiryTimeCache(double maxAgeSeconds,
double purgeIntervalSeconds,
ConfigurationCacheReferenceType cacheReferenceType)
Configures an expiry-time cache of the given maximum age in seconds and purge interval in seconds. |
void |
setLRUCache(int size)
Configures a LRU cache of the given size for the method invocation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigurationMethodRef()
Method Detail |
---|
public void setLRUCache(int size)
size
- is the maximum number of entries before method invocation results are evictedpublic void setExpiryTimeCache(double maxAgeSeconds, double purgeIntervalSeconds)
Specifies the cache reference type to be weak references. Weak reference cache entries become eligible for garbage collection and are removed from cache when the garbage collection requires so.
maxAgeSeconds
- is the maximum number of seconds before a method invocation result is considered stale (also known as time-to-live)purgeIntervalSeconds
- is the interval at which the engine purges stale data from the cachepublic void setExpiryTimeCache(double maxAgeSeconds, double purgeIntervalSeconds, ConfigurationCacheReferenceType cacheReferenceType)
maxAgeSeconds
- is the maximum number of seconds before a method invocation result is considered stale (also known as time-to-live)purgeIntervalSeconds
- is the interval at which the engine purges stale data from the cachecacheReferenceType
- specifies the reference type to usepublic ConfigurationDataCache getDataCacheDesc()
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |