public interface EventContext
Channel leads to the creation of
a SimpleEvent.
Allows BusinessEvents to acknowledge and/or to reply to the message
using the underlying transport of the associated Channel.| Modifier and Type | Method and Description |
|---|---|
void |
acknowledge()
Acknowledges the message that was deserialized into the event associated to this
EventContext. |
boolean |
canReply()
Specifies if this
EventContext can reply to the original message. |
java.lang.Object |
getMessage()
Gets the message that was deserialized into the event associated to this
EventContext. |
boolean |
reply(SimpleEvent replyEvent)
Replies with the given
SimpleEvent to
the message that was deserialized into the event associated to this EventContext. |
void acknowledge()
EventContext.boolean reply(SimpleEvent replyEvent)
SimpleEvent to
the message that was deserialized into the event associated to this EventContext.replyEvent - boolean canReply()
EventContext can reply to the original message.EventContext can reply to the original message.java.lang.Object getMessage()
EventContext.EventContext.