org.codehaus.wadi
Interface Evictable

All Known Subinterfaces:
Context, Location, Motable, Session, StoreMotable, WADIHttpSession
All Known Implementing Classes:
AbstractContext, AbstractMotable, DatabaseMotable, DiscMotable, HttpProxyLocation, SimpleEvictable, 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: 1200 $
Author:
Jules Gosnell

Method Summary
 boolean checkTimeframe(long time)
           
 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)
           
 boolean isNew()
           
 void mote(Evictable recipient)
           
 void setLastAccessedTime(long lastAccessedTime)
           
 void setMaxInactiveInterval(int maxInactiveInterval)
           
 

Method Detail

init

public void init(long creationTime,
                 long lastAccessedTime,
                 int maxInactiveInterval)

destroy

public void destroy()
             throws Exception
Throws:
Exception

copy

public void copy(Evictable evictable)
          throws Exception
Throws:
Exception

mote

public void mote(Evictable recipient)
          throws Exception
Throws:
Exception

getCreationTime

public long getCreationTime()

getLastAccessedTime

public long getLastAccessedTime()

setLastAccessedTime

public void setLastAccessedTime(long lastAccessedTime)

getMaxInactiveInterval

public int getMaxInactiveInterval()

setMaxInactiveInterval

public void setMaxInactiveInterval(int maxInactiveInterval)

isNew

public boolean isNew()

getTimeToLive

public long getTimeToLive(long time)

getTimedOut

public boolean getTimedOut(long time)

checkTimeframe

public boolean checkTimeframe(long time)


Copyright © 2004-2008 Core Developers Network Ltd.. All Rights Reserved.