|
ADK CVS | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objecttryllian.are.AgentEvent
Indicates that something interesting has happened. Receiving AgentEvents is the primary method to give agents execution time. Upon receiving an agent event, an agent gets the chance to execute some code.
AgentEvents can convey the following kinds of information:
The underlying system has the chance to piggyback multiple types of events on one event. For instance, it is perfectly possible for an event to contain a heartbeat, a message and a deliveryreport.
| Constructor Summary | |
AgentEvent(com.tryllian.are.core.delegate.AgentEventDelegate delegate)
Creates a new AgentEvent. |
|
| Method Summary | |
DeliveryReport |
getDeliveryReport()
Returns the message delivery report, if there was any. |
Message |
getMessage()
Returns the incoming message if there was any. |
long |
getTimeStamp()
Returns the time in milliseconds at which this event was created. |
boolean |
isDeliveryReport()
Check if this event contains a delivery report. |
boolean |
isHeartbeat()
Check if this event contains a heartbeat. |
boolean |
isMessage()
Check if this event contains an incoming message. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AgentEvent(com.tryllian.are.core.delegate.AgentEventDelegate delegate)
delegate - the event delegate that does the actual work.
This parameter can not be null.| Method Detail |
public boolean isHeartbeat()
true if this event contains a heartbeat,
false otherewise.public boolean isMessage()
true if this event contains an incoming
message, false otherwise.public boolean isDeliveryReport()
truefalse otherwise.public long getTimeStamp()
System.currentTimeMillispublic Message getMessage()
isMessage returns
true, or null if isMessage returns falsepublic DeliveryReport getDeliveryReport()
isDeliveryReport is true,
or null if isDeliveryReport returns false.
|
Copyright 2005, Tryllian Solutions B.V. | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||