CoherenceTM v3.4
Copyright© 2000-2008 by Oracle Corporation

com.tangosol.coherence.servlet
Class AbstractHttpSessionCollection.ExitAgent

java.lang.Object
  extended by com.tangosol.util.Base
      extended by com.tangosol.net.AbstractInvocable
          extended by com.tangosol.coherence.servlet.AbstractHttpSessionCollection.ExitAgent
All Implemented Interfaces:
Invocable, InvocableInOrder, PriorityTask, java.io.Serializable, java.lang.Runnable
Enclosing class:
AbstractHttpSessionCollection

public static class AbstractHttpSessionCollection.ExitAgent
extends AbstractInvocable

This agent is used to request the other servers in the cluster to unlock the specified session ID.

Note: This must be a static class, for serialization purposes. Were it not static, it would "drag" the entire session collection with it across the cluster.


Field Summary
 
Fields inherited from interface com.tangosol.net.PriorityTask
SCHEDULE_FIRST, SCHEDULE_IMMEDIATE, SCHEDULE_STANDARD, TIMEOUT_DEFAULT, TIMEOUT_NONE
 
Constructor Summary
AbstractHttpSessionCollection.ExitAgent(java.lang.String sId)
          Construct an ExitAgent to unlock a specific session.
 
Method Summary
protected  java.lang.String getSessionId()
          Obtain the session ID that this agent is supposed to unlock.
 void run()
          This method is invoked when the agent is run on the various servers in the cluster.
 
Methods inherited from class com.tangosol.net.AbstractInvocable
getExecutionTimeoutMillis, getRequestTimeoutMillis, getResult, getSchedulingPriority, getService, init, isRespondInOrder, runCanceled, setResult
 

Constructor Detail

AbstractHttpSessionCollection.ExitAgent

public AbstractHttpSessionCollection.ExitAgent(java.lang.String sId)
Construct an ExitAgent to unlock a specific session.

Parameters:
sId - the id of the session that needs to be unlocked
Method Detail

run

public void run()
This method is invoked when the agent is run on the various servers in the cluster. It unlocks the session (or specifies that it should be unlocked when exited.)


getSessionId

protected java.lang.String getSessionId()
Obtain the session ID that this agent is supposed to unlock.

Returns:
the session ID to unlock

CoherenceTM v3.4
Copyright© 2000-2008 by Oracle Corporation