org.opensaml.util.storage
Class ReplayCache.ReplayCacheEntry

java.lang.Object
  extended by org.opensaml.util.storage.ReplayCache.ReplayCacheEntry
All Implemented Interfaces:
Serializable, ExpiringObject
Enclosing class:
ReplayCache

public class ReplayCache.ReplayCacheEntry
extends Object
implements ExpiringObject, Serializable

Replay cache storage service entry.

See Also:
Serialized Form

Constructor Summary
ReplayCache.ReplayCacheEntry(org.joda.time.DateTime expiration)
          Constructor.
 
Method Summary
 org.joda.time.DateTime getExpirationTime()
          Gets the time the object expires.
 boolean isExpired()
          Gets whether this object has expired.
 void onExpire()
          A callback method invoked when this object is expiring.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReplayCache.ReplayCacheEntry

public ReplayCache.ReplayCacheEntry(org.joda.time.DateTime expiration)
Constructor.

Parameters:
expiration - time when this entry expires
Method Detail

getExpirationTime

public org.joda.time.DateTime getExpirationTime()
Gets the time the object expires.

Specified by:
getExpirationTime in interface ExpiringObject
Returns:
time the object expires

isExpired

public boolean isExpired()
Gets whether this object has expired.

Specified by:
isExpired in interface ExpiringObject
Returns:
true if the expiration time has passed, false if not

onExpire

public void onExpire()
A callback method invoked when this object is expiring. Note, this method may not be invoked at the exact instant of expiration but may, instead, be invoked the next time the object is read and noticed to have expired.

Specified by:
onExpire in interface ExpiringObject


Copyright © 2006-2008 Internet2. All Rights Reserved.