de.nava.informa.utils
Class CacheSettings
java.lang.Object
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
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 |
CacheSettings
public CacheSettings()
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.