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

Method Summary
 void copy(Evictable evictable)
           
 void destroy()
           
 long getCreationTime()
           
 long getLastAccessedTime()
           
 int getMaxInactiveInterval()
           
 boolean getTimedOut(long time)
           
 long getTimeToLive(long time)
           
 void init(long creationTime, long lastAccessedTime, int maxInactiveInterval)
           
 void mote(Evictable recipient)
           
 void setLastAccessedTime(long lastAccessedTime)
           
 void setMaxInactiveInterval(int maxInactiveInterval)
           
 

Method Detail

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 © 2011. All Rights Reserved.