class StopAfterTimer.Task extends java.util.TimerTask implements Finalizable
| Modifier and Type | Field and Description |
|---|---|
private BlockDefinition |
blockDefinition
Block definition related to timeout task
|
private StopAfterTimer.Task |
nextTask
Task related to the the next stop-after block on the stack.
|
private StopAfterTimer.Task |
prevTask
Task related to the the previous stop-after block on the stack.
|
private long |
timeout
Number of seconds for block timeout
|
| Constructor and Description |
|---|
Task(BlockDefinition blockDefinition,
long timeout)
Constructor.
|
Task(StopAfterTimer.Task existingTask)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deleted()
Provides a notification that the external program scope in which the object is registered is
is being deleted and the object's reference will be lost after this method is called.
|
void |
finished()
Called by the transaction manager just before a block closes.
|
void |
iterate()
Called by the transaction manager after each iteration of a repeating
block.
|
void |
retry()
Called by the transaction manager before a block is retried after an
error.
|
void |
run()
Method responsible for stopping the thread corresponding
to the
session and subsequent cleanup of the
children task's. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitentry, initFailure, weightprivate BlockDefinition blockDefinition
private StopAfterTimer.Task prevTask
private StopAfterTimer.Task nextTask
private long timeout
public Task(BlockDefinition blockDefinition, long timeout)
blockDefinition - Progress block for which timeout is set.timeout - Number of seconds which will be set as a timeout.public Task(StopAfterTimer.Task existingTask)
existingTask - Canceled task from which a new timer task will be created.public void run()
session and subsequent cleanup of the
children task's.run in interface java.lang.Runnablerun in class java.util.TimerTaskpublic void finished()
finished in interface Finalizablepublic void deleted()
deleted in interface Finalizablepublic void iterate()
iterate in interface Finalizablepublic void retry()
retry in interface Finalizable