1 16 package org.mortbay.j2ee.session; 17 18 import javax.servlet.http.HttpServletRequest ; 19 20 22 24 26 28 30 33 public interface 34 Store 35 extends Cloneable 36 { 37 Manager getManager(); 38 void setManager(Manager manager); 39 40 void start() throws Exception ; 42 void stop(); 43 void destroy(); 45 void setScavengerPeriod(int secs); 47 void setScavengerExtraTime(int secs); 48 void setActualMaxInactiveInterval(int secs); 49 int getActualMaxInactiveInterval(); 50 boolean isDistributed(); 51 52 String allocateId(HttpServletRequest request) throws Exception ; 54 void deallocateId(String id) throws Exception ; 55 56 State newState(String id, int maxInactiveInterval) throws Exception ; 58 State loadState(String id) throws Exception ; 59 void storeState(State state) throws Exception ; 60 void removeState(State state) throws Exception ; 61 62 void scavenge() throws Exception ; 64 void passivateSession(StateAdaptor sa); 65 66 public Object clone(); 67 } 68 69 | Popular Tags |