Skip navigation links

Oracle® Coherence Java API Reference
Release 3.6.1.0

E18814-01


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:
ExternalizableLite, Invocable, InvocableInOrder, PriorityTask, java.io.Serializable, java.lang.Runnable
Enclosing class:
AbstractHttpSessionCollection

Deprecated. In releases following 3.6 customization will be declarative.

public static class AbstractHttpSessionCollection.ExitAgent
extends AbstractInvocable
implements ExternalizableLite

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()
          Deprecated. Default constructor.
AbstractHttpSessionCollection.ExitAgent(java.lang.String sId)
          Deprecated. Construct an ExitAgent to unlock a specific session.

 

Method Summary
 void readExternal(java.io.DataInput in)
          Deprecated. Restore the contents of this object by loading the object's state from the passed DataInput object.
 void run()
          Deprecated. This method is invoked when the agent is run on the various servers in the cluster.
 void writeExternal(java.io.DataOutput out)
          Deprecated. Save the contents of this object by storing the object's state into the passed DataOutput object.

 

Methods inherited from class com.tangosol.net.AbstractInvocable
getExecutionTimeoutMillis, getRequestTimeoutMillis, getResult, getSchedulingPriority, getService, init, isRespondInOrder, runCanceled, setResult

 

Constructor Detail

AbstractHttpSessionCollection.ExitAgent

public AbstractHttpSessionCollection.ExitAgent()
Deprecated. 
Default constructor.

AbstractHttpSessionCollection.ExitAgent

public AbstractHttpSessionCollection.ExitAgent(java.lang.String sId)
Deprecated. 
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()
Deprecated. 
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.)
Specified by:
run in interface Invocable
Specified by:
run in interface java.lang.Runnable
See Also:
Thread.run()

readExternal

public void readExternal(java.io.DataInput in)
                  throws java.io.IOException
Deprecated. 
Restore the contents of this object by loading the object's state from the passed DataInput object.
Specified by:
readExternal in interface ExternalizableLite
Parameters:
in - the DataInput stream to read data from in order to restore the state of this object
Throws:
java.io.IOException - if an I/O exception occurs
java.io.NotActiveException - if the object is not in its initial state, and therefore cannot be deserialized into

writeExternal

public void writeExternal(java.io.DataOutput out)
                   throws java.io.IOException
Deprecated. 
Save the contents of this object by storing the object's state into the passed DataOutput object.
Specified by:
writeExternal in interface ExternalizableLite
Parameters:
out - the DataOutput stream to write the state of this object to
Throws:
java.io.IOException - if an I/O exception occurs

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.6.1.0

E18814-01


Copyright © 2000, 2010, Oracle and/or its affiliates. All rights reserved.