ProgramixGenericLib v5.0.1

com.programix.da2.bridge
Class DABridgeSession.Manager

java.lang.Object
  extended by com.programix.da2.bridge.DABridgeSession.Manager
Enclosing class:
DABridgeSession

public static class DABridgeSession.Manager
extends Object

Used to manage the sessions.

Author:
Paul Hyde
See Also:
DABridgeSession

Constructor Summary
DABridgeSession.Manager()
           
DABridgeSession.Manager(int defaultIdleTimeoutMinutes)
           
 
Method Summary
 int getDefaultIdleTimeoutMinutes()
           
 DABridgeSession getSession(byte[] id)
          Looks up the specified session or creates a new session if the specified session does not exist or has expired.
 DABridgeSession getSession(String idStr)
          Looks up the specified session or creates a new session if the specified session does not exist or has expired.
 DABridgeSession.Initializer getSessionInitializer()
          Retrieves the DABridgeSession.Initializer used to initialize sessions just after they are created.
 void setSessionInitializer(DABridgeSession.Initializer sessionInitializer)
          Specifies the DABridgeSession.Initializer used to initialize sessions just after they are created.
 void shutdown()
          Deletes all sessions and stops the internal thread that checks for timeouts.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DABridgeSession.Manager

public DABridgeSession.Manager(int defaultIdleTimeoutMinutes)

DABridgeSession.Manager

public DABridgeSession.Manager()
Method Detail

getDefaultIdleTimeoutMinutes

public int getDefaultIdleTimeoutMinutes()

getSessionInitializer

public DABridgeSession.Initializer getSessionInitializer()
Retrieves the DABridgeSession.Initializer used to initialize sessions just after they are created. If null, no initialization occurs.


setSessionInitializer

public void setSessionInitializer(DABridgeSession.Initializer sessionInitializer)
Specifies the DABridgeSession.Initializer used to initialize sessions just after they are created. If null, no initialization occurs.


shutdown

public void shutdown()
Deletes all sessions and stops the internal thread that checks for timeouts.


getSession

public DABridgeSession getSession(byte[] id)
Looks up the specified session or creates a new session if the specified session does not exist or has expired.


getSession

public DABridgeSession getSession(String idStr)
Looks up the specified session or creates a new session if the specified session does not exist or has expired.


ProgramixGenericLib v5.0.1

Copyright © 2001-2009 Programix Incorporated. All rights reserved. ProgramixGenericLib is free and is OSI Certified Open Source Software under the BSD license.