public interface RemoteCancellableTask extends CancellableTask, TaskIdHolder
SessionId of the killer.| Modifier and Type | Method and Description |
|---|---|
void |
cancel(SessionId killerSessId)
Cancels the running task and stores the
SessionId of the killer. |
SessionId |
getKillerSessionId()
Returns the
SessionId of the one who cancelled this task |
wasCancelledgetTaskIdvoid cancel(SessionId killerSessId)
SessionId of the killer. Note that this call puts the
task in a CANCEL_REQUESTED state. The task itself needs to detect this and perform any action
needed for canceling itself - after all it puts itself in the cancelled state and
terminates. The method CancellableTask.wasCancelled() returns true once a cancel was requested.Copyright © 2014 EsprIT-Systems. All Rights Reserved.