|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
edu.cuny.cat.task.DispatchingTask
public abstract class DispatchingTask
Defines the interface for the task of dispatching events or messages to specified receivers. It is observable and its observers are notified if the task fails to accomplish.
Field Summary | |
---|---|
int |
tid
an integer uniquely identifying this task and also providing a way to sort tasks as the order they are created |
Constructor Summary | |
---|---|
DispatchingTask()
|
Method Summary | |
---|---|
void |
failedOn(java.lang.Object receiver)
notifies the observers of the failure of dispatching to the specified receiver. |
java.lang.String |
toString()
|
Methods inherited from class java.util.Observable |
---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.lang.Runnable |
---|
run |
Field Detail |
---|
public int tid
Constructor Detail |
---|
public DispatchingTask()
Method Detail |
---|
public void failedOn(java.lang.Object receiver)
receiver
- the receiver involved in the failurepublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |