Package com.tangosol.coherence.servlet
Class ExitTask
- java.lang.Object
-
- com.tangosol.coherence.servlet.ExitTask
-
- All Implemented Interfaces:
Invocable
,Serializable
,Runnable
public class ExitTask extends Object implements Invocable
This task is used to unlock a session ID.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExitTask(String sId, AbstractHttpSessionCollection collection)
Construct an ExitTask to unlock a specific session.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getResult()
Obtain the result of executing this ExitTask.void
init(InvocationService service)
Called by the InvocationService exactly once on this Invocable object as part of its initialization.void
run()
This method attempts to unlock the session ID associated with this ExitTask.void
setCollection(AbstractHttpSessionCollection collection)
-
-
-
Constructor Detail
-
ExitTask
public ExitTask(String sId, AbstractHttpSessionCollection collection)
Construct an ExitTask to unlock a specific session.- Parameters:
sId
- the id of the session that needs to be unlockedcollection
- the http session collection
-
-
Method Detail
-
init
public void init(InvocationService service)
Called by the InvocationService exactly once on this Invocable object as part of its initialization.Note: implementations of the Invocable interface that store the service reference must do so only in a transient field.
-
setCollection
public void setCollection(AbstractHttpSessionCollection collection)
-
getResult
public Object getResult()
Obtain the result of executing this ExitTask.
-
-