ALBPM Process API

fuego.papi.utils
Class SessionCache

java.lang.Object
  extended by fuego.papi.utils.SessionCache

public class SessionCache
extends Object


Method Summary
 void clear()
          Closes and removes all sessions in the cache.
static SessionCache create(long timeout)
          Create a new session cache for a ProcessService with a time out for idle sessions.
 ProcessServiceSession getSession(String sessionId)
          Returns the ProcessServiceSession with the given session id.
 String putSession(ProcessServiceSession session)
          Adds a session to the cache.
 void removeSession(String sessionId)
          Closes the session associated with the given session id and removes it from the cache.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static SessionCache create(long timeout)
Create a new session cache for a ProcessService with a time out for idle sessions.

Parameters:
timeout - Session idle time out.

getSession

public ProcessServiceSession getSession(String sessionId)
Returns the ProcessServiceSession with the given session id.

Parameters:
sessionId - The identification of the session to obtaion.
Returns:
ProcessServiceSession associated with the given id.
See Also:
ProcessServiceSession

removeSession

public void removeSession(String sessionId)
Closes the session associated with the given session id and removes it from the cache.

Parameters:
sessionId - Session identification to remove.

clear

public void clear()
Closes and removes all sessions in the cache.


putSession

public String putSession(ProcessServiceSession session)
Adds a session to the cache.

Parameters:
session - ProcessServiceSession to add to the cache.
Returns:
The session identification in the cache.

ALBPM Process API

© Copyright 1996/2005 Fuego Inc. All Rights Reserved