net.esper.client
Class ConfigurationDBRef.ExpiryTimeCacheDesc

java.lang.Object
  extended by net.esper.client.ConfigurationDBRef.ExpiryTimeCacheDesc
All Implemented Interfaces:
Serializable, ConfigurationDBRef.DataCacheDesc
Enclosing class:
ConfigurationDBRef

public static class ConfigurationDBRef.ExpiryTimeCacheDesc
extends Object
implements ConfigurationDBRef.DataCacheDesc, Serializable

Expiring cache settings.

See Also:
Serialized Form

Constructor Summary
ConfigurationDBRef.ExpiryTimeCacheDesc(double maxAgeSeconds, double purgeIntervalSeconds, ConfigurationDBRef.CacheReferenceType cacheReferenceType)
          Ctor.
 
Method Summary
 ConfigurationDBRef.CacheReferenceType getCacheReferenceType()
          Returns the enumeration whether hard, soft or weak reference type are used to control whether the garbage collection can remove entries from cache.
 double getMaxAgeSeconds()
          Returns the maximum age in seconds.
 double getPurgeIntervalSeconds()
          Returns the purge interval length.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfigurationDBRef.ExpiryTimeCacheDesc

public ConfigurationDBRef.ExpiryTimeCacheDesc(double maxAgeSeconds,
                                              double purgeIntervalSeconds,
                                              ConfigurationDBRef.CacheReferenceType cacheReferenceType)
Ctor.

Parameters:
maxAgeSeconds - is the maximum age in seconds
purgeIntervalSeconds - is the purge interval
cacheReferenceType - the reference type may allow garbage collection to remove entries from cache unless HARD reference type indicates otherwise
Method Detail

getMaxAgeSeconds

public double getMaxAgeSeconds()
Returns the maximum age in seconds.

Returns:
number of seconds

getPurgeIntervalSeconds

public double getPurgeIntervalSeconds()
Returns the purge interval length.

Returns:
purge interval in seconds

getCacheReferenceType

public ConfigurationDBRef.CacheReferenceType getCacheReferenceType()
Returns the enumeration whether hard, soft or weak reference type are used to control whether the garbage collection can remove entries from cache.

Returns:
reference type

toString

public String toString()
Overrides:
toString in class Object

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com