org.codehaus.wadi.core.eviction
Interface Evictable
- All Known Subinterfaces:
- Motable, Session, WADIHttpSession, WebSession
- All Known Implementing Classes:
- AbstractMotable, AbstractReplicableSession, AtomicallyReplicableSession, BasicStoreMotable, BasicWebSession, DistributableSession, SimpleEvictable, SimpleMotable, StandardSession
public interface Evictable
API for objects that may be inspected to determine whether they should
be timed out after certain period of inactivity.
- Version:
- $Revision: 2267 $
- Author:
- Jules Gosnell
init
void init(long creationTime,
long lastAccessedTime,
int maxInactiveInterval)
destroy
void destroy()
throws java.lang.Exception
- Throws:
java.lang.Exception
copy
void copy(Evictable evictable)
throws java.lang.Exception
- Throws:
java.lang.Exception
mote
void mote(Evictable recipient)
throws java.lang.Exception
- Throws:
java.lang.Exception
getCreationTime
long getCreationTime()
getLastAccessedTime
long getLastAccessedTime()
setLastAccessedTime
void setLastAccessedTime(long lastAccessedTime)
getMaxInactiveInterval
int getMaxInactiveInterval()
setMaxInactiveInterval
void setMaxInactiveInterval(int maxInactiveInterval)
getTimeToLive
long getTimeToLive(long time)
getTimedOut
boolean getTimedOut(long time)
Copyright © 2010. All Rights Reserved.