|
DJAVA | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectau.gov.aao.drama.DramaPath.ResponseHandler
public static class DramaPath.ResponseHandler
A class which handles responding to DRAMA messages initiated using a DramaPath object.
This class provides default handling for replies for messages sent using a DramaPath object. Applications should override the Success, Error, Trigger, Ers and Msg methods as required to implement their required handling of these replies. TheDramaPath.RescheduleHandler class
examines every message it receives and if that message is a reply
to a message sent by this task and it refers to
a class derived from this class, then the RescheduleHandler object
uses the methods of this class to handle those message replies.
DramaPath,
DramaPath.RescheduleHandler| Constructor Summary | |
|---|---|
DramaPath.ResponseHandler(DramaPath p)
Construct a DramaPath.ResponseHandler object. |
|
| Method Summary | |
|---|---|
boolean |
Error(DramaPath path,
DramaTask task)
Invoked when a message has completed with error. |
boolean |
Ers(DramaPath path,
DramaTask task)
Invoked when a Ers message has been received. |
void |
Forget()
Forget this transaction. |
boolean |
Forgotten()
Has this transaction been forgotten? |
boolean |
Msg(DramaPath path,
DramaTask task)
Invoked when a MsgOut message has been received. |
boolean |
Success(DramaPath path,
DramaTask task)
Invoked when a message has completed sucessfully. |
boolean |
Trigger(DramaPath path,
DramaTask task)
Invoked when a trigger message has been received. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DramaPath.ResponseHandler(DramaPath p)
p - The DramPath object involved in the transaction.| Method Detail |
|---|
public final void Forget()
public final boolean Forgotten()
public boolean Success(DramaPath path,
DramaTask task)
throws DramaException
path - The DramaPath object for the path of the message.task - The DramaTask object.
DramaException - Thrown on errors in the DRAMA code.
public boolean Error(DramaPath path,
DramaTask task)
throws DramaException
path - The DramaPath object for the path of the message.task - The DramaTask object.
DramaException - Thrown on errors in the DRAMA code.
public boolean Trigger(DramaPath path,
DramaTask task)
throws DramaException
path - The DramaPath object for the path of the message.task - The DramaTask object.
DramaException - Thrown on errors in the DRAMA code.
public boolean Msg(DramaPath path,
DramaTask task)
throws DramaException
path - The DramaPath object for the path of the message.task - The DramaTask object.
DramaException - Thrown on errors in the DRAMA code.
public boolean Ers(DramaPath path,
DramaTask task)
throws DramaException
path - The DramaPath object for the path of the message.task - The DramaTask object.
DramaException - Thrown on errors in the DRAMA code.
|
DJAVA | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Click here for the DRAMA home page and here for the AAO home page.
For more information, contact tjf@aaoepp.aao.gov.au.