de.nava.informa.utils
Class CacheSettings

java.lang.Object
  extended by de.nava.informa.utils.CacheSettings
All Implemented Interfaces:
CacheSettingsIF

public class CacheSettings
extends Object
implements CacheSettingsIF

delegation class for the various CacheSettingsIF implementation. default behavior : ttl (or update period) in feed is always respected. without such indication, the ttl specified by the informa user is used.

Author:
Jean-Guy Avelin

Field Summary
 
Fields inherited from interface de.nava.informa.utils.CacheSettingsIF
DEFAULT_TTL, MILLISECONDS_IN_DAY, MILLISECONDS_IN_HOUR, MILLISECONDS_IN_MONTH, MILLISECONDS_IN_YEAR, MINIMAL_TTL
 
Constructor Summary
CacheSettings()
           
 
Method Summary
 long getTtl(ChannelIF channel, long ttl)
          determine ttl for the feed, depending on ttl specified by the feed producer and the ttl wanted by the informa user.
 void setDefaultTtl(long defTtl)
          TODO : remove ?
 void setDefaultTtl(String type, long defTtl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheSettings

public CacheSettings()
Method Detail

getTtl

public long getTtl(ChannelIF channel,
                   long ttl)
determine ttl for the feed, depending on ttl specified by the feed producer and the ttl wanted by the informa user.

Specified by:
getTtl in interface CacheSettingsIF

setDefaultTtl

public void setDefaultTtl(long defTtl)
TODO : remove ?

Specified by:
setDefaultTtl in interface CacheSettingsIF

setDefaultTtl

public void setDefaultTtl(String type,
                          long defTtl)


Copyright © 2002-2007 Niko Schmuck. All Rights Reserved.