org.apache.rampart
Class AbstractUniqueMessageAttributeCache

java.lang.Object
  extended by org.apache.rampart.AbstractUniqueMessageAttributeCache
All Implemented Interfaces:
UniqueMessageAttributeCache
Direct Known Subclasses:
NonceCache

public abstract class AbstractUniqueMessageAttributeCache
extends java.lang.Object
implements UniqueMessageAttributeCache

An abstract class which implements UniqueMessageAttributeCache interface.


Constructor Summary
AbstractUniqueMessageAttributeCache()
          Default constructor.
AbstractUniqueMessageAttributeCache(int maxTime)
          Constructor with maximum life time as a parameter.
 
Method Summary
 int getMaximumLifeTimeOfAnAttribute()
          Gets the maximum life time of a message id.
 void setMaximumLifeTimeOfAnAttribute(int maxTime)
          Sets the maximum life time of a message id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.rampart.UniqueMessageAttributeCache
addToCache, clearCache, valueExistsInCache
 

Constructor Detail

AbstractUniqueMessageAttributeCache

public AbstractUniqueMessageAttributeCache()
Default constructor.


AbstractUniqueMessageAttributeCache

public AbstractUniqueMessageAttributeCache(int maxTime)
Constructor with maximum life time as a parameter.

Parameters:
maxTime - Maximum life time in seconds.
Method Detail

setMaximumLifeTimeOfAnAttribute

public void setMaximumLifeTimeOfAnAttribute(int maxTime)
Sets the maximum life time of a message id.

Specified by:
setMaximumLifeTimeOfAnAttribute in interface UniqueMessageAttributeCache
Parameters:
maxTime - Maximum life time in seconds.

getMaximumLifeTimeOfAnAttribute

public int getMaximumLifeTimeOfAnAttribute()
Gets the maximum life time of a message id.

Specified by:
getMaximumLifeTimeOfAnAttribute in interface UniqueMessageAttributeCache
Returns:
Gets message id life time in seconds.