frysk.proc
Class TestTaskObserverInstruction.InstructionObserver
java.lang.Object
frysk.proc.TestTaskObserverInstruction.InstructionObserver
- All Implemented Interfaces:
- Observer, TaskObserver, TaskObserver.Instruction
- Enclosing class:
- TestTaskObserverInstruction
private static class TestTaskObserverInstruction.InstructionObserver
- extends Object
- implements TaskObserver.Instruction
Field Summary |
(package private) boolean |
added
|
(package private) boolean |
deleted
|
(package private) int |
hit
|
Method Summary |
void |
addedTo(Object o)
Acknowledge the request to add this Observer from Object's set
of observers was successful. |
void |
addFailed(Object o,
Throwable w)
Notify that the attempt to add to the specified observer failed. |
void |
deletedFrom(Object o)
Acknowledge the request to delete this Observer from Object's
set of observers was successful (or that the Observer was
spontaneously deleted, e.g., due to a task exit). |
Action |
updateExecuted(Task task)
The task has started executing or has executed another
instruction. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
added
boolean added
deleted
boolean deleted
hit
int hit
TestTaskObserverInstruction.InstructionObserver
private TestTaskObserverInstruction.InstructionObserver()
updateExecuted
public Action updateExecuted(Task task)
- Description copied from interface:
TaskObserver.Instruction
- The task has started executing or has executed another
instruction. Return Action.BLOCK to block the task's
further execution. When Action.CONTINUE is returned
this method will be called as soon as one instruction
has been executed.
- Specified by:
updateExecuted
in interface TaskObserver.Instruction
addedTo
public void addedTo(Object o)
- Description copied from interface:
Observer
- Acknowledge the request to add this Observer from Object's set
of observers was successful.
- Specified by:
addedTo
in interface Observer
deletedFrom
public void deletedFrom(Object o)
- Description copied from interface:
Observer
- Acknowledge the request to delete this Observer from Object's
set of observers was successful (or that the Observer was
spontaneously deleted, e.g., due to a task exit).
- Specified by:
deletedFrom
in interface Observer
addFailed
public void addFailed(Object o,
Throwable w)
- Description copied from interface:
Observer
- Notify that the attempt to add to the specified observer failed.
- Specified by:
addFailed
in interface Observer