org.mortbay.j2ee.session
Interface Store

All Superinterfaces:
Cloneable
All Known Implementing Classes:
AbstractReplicatedStore, AbstractStore, LocalStore

public interface Store
extends Cloneable


Method Summary
 String allocateId(javax.servlet.http.HttpServletRequest request)
           
 Object clone()
           
 void deallocateId(String id)
           
 void destroy()
           
 int getActualMaxInactiveInterval()
           
 Manager getManager()
           
 boolean isDistributed()
           
 State loadState(String id)
           
 State newState(String id, int maxInactiveInterval)
           
 void passivateSession(StateAdaptor sa)
           
 void removeState(State state)
           
 void scavenge()
           
 void setActualMaxInactiveInterval(int secs)
           
 void setManager(Manager manager)
           
 void setScavengerExtraTime(int secs)
           
 void setScavengerPeriod(int secs)
           
 void start()
           
 void stop()
           
 void storeState(State state)
           
 

Method Detail

getManager

Manager getManager()

setManager

void setManager(Manager manager)

start

void start()
           throws Exception
Throws:
Exception

stop

void stop()

destroy

void destroy()

setScavengerPeriod

void setScavengerPeriod(int secs)

setScavengerExtraTime

void setScavengerExtraTime(int secs)

setActualMaxInactiveInterval

void setActualMaxInactiveInterval(int secs)

getActualMaxInactiveInterval

int getActualMaxInactiveInterval()

isDistributed

boolean isDistributed()

allocateId

String allocateId(javax.servlet.http.HttpServletRequest request)
                  throws Exception
Throws:
Exception

deallocateId

void deallocateId(String id)
                  throws Exception
Throws:
Exception

newState

State newState(String id,
               int maxInactiveInterval)
               throws Exception
Throws:
Exception

loadState

State loadState(String id)
                throws Exception
Throws:
Exception

storeState

void storeState(State state)
                throws Exception
Throws:
Exception

removeState

void removeState(State state)
                 throws Exception
Throws:
Exception

scavenge

void scavenge()
              throws Exception
Throws:
Exception

passivateSession

void passivateSession(StateAdaptor sa)

clone

Object clone()


Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.