01: /*
02: * Copyright 2001 Sun Microsystems, Inc. All rights reserved.
03: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
04: */
05: package com.sun.portal.desktop.context;
06:
07: import java.util.Set;
08:
09: import javax.servlet.ServletContext;
10: import javax.servlet.http.HttpServletRequest;
11:
12: public interface DesktopContextFactory {
13: public void init(ServletContext sc);
14:
15: public DesktopContext getDesktopContext(HttpServletRequest req);
16:
17: public DesktopContext getDesktopContext(HttpServletRequest req,
18: int expires);
19:
20: public DesktopContext getDesktopContext(HttpServletRequest req,
21: int expires, boolean create);
22:
23: public void releaseDesktopContexts(Set sessionIDs);
24:
25: public DesktopAppContext getDesktopAppContext();
26: //
27: // the creation and starting of the reaper thread
28: // is disabled per bug #4720290. see this bug report
29: // for details
30: //
31: //public void reapDesktopContexts(long maxInactive);
32: }
|