|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ResultType
- type of the value returned by the Command
.MessageType
- the type of the message transported by the Event
public interface Event<ResultType,MessageType>
This interface defines a Keridwen Event
. An Event
is a container that transports an array
of parameters.
Method Summary | |
---|---|
BundleController |
getDestination()
Gets the BundleController to which this Event should be sent (if known). |
EventKey |
getKey()
Returns the unique EventKey of this Event . |
MessageType |
getMessage()
Gets the message transmitted with by the Event . |
Object |
getSource()
Gets the sender of the Event . |
Supervisor<ResultType> |
getSupervisor()
Gets the supervisor of the associated Command . |
void |
setMessage(MessageType message)
Sets the message of the Event . |
void |
setSupervisor(Supervisor<ResultType> aSupervisor)
Sets the supervisor of the associated Command . |
Method Detail |
---|
EventKey getKey()
EventKey
of this Event
.
Event
MessageType getMessage()
Event
.
Event
void setMessage(MessageType message)
Event
.
message
- the message to set.BundleController getDestination()
BundleController
to which this Event
should be sent (if known).
BundleController
that should process this Event
.Object getSource()
Event
.
Event
.Supervisor<ResultType> getSupervisor()
Command
.
void setSupervisor(Supervisor<ResultType> aSupervisor)
Command
.
aSupervisor
- the command supervisor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |