com.espertech.esper.client
Class ConfigurationExpiryTimeCache

java.lang.Object
  extended by com.espertech.esper.client.ConfigurationExpiryTimeCache
All Implemented Interfaces:
ConfigurationDataCache, java.io.Serializable

public class ConfigurationExpiryTimeCache
extends java.lang.Object
implements ConfigurationDataCache, java.io.Serializable

Expiring cache settings.

See Also:
Serialized Form

Constructor Summary
ConfigurationExpiryTimeCache(double maxAgeSeconds, double purgeIntervalSeconds, ConfigurationCacheReferenceType cacheReferenceType)
          Ctor.
 
Method Summary
 ConfigurationCacheReferenceType 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.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfigurationExpiryTimeCache

public ConfigurationExpiryTimeCache(double maxAgeSeconds,
                                    double purgeIntervalSeconds,
                                    ConfigurationCacheReferenceType 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 ConfigurationCacheReferenceType 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 java.lang.String toString()
Overrides:
toString in class java.lang.Object

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com