public interface EventContext
Channel
which leads to the creation of
an Event
.
Allows BusinessEvents to acknowledge and/or to reply to the message
using the underlying transport(Destination) of the associated Channel
.BaseDestination.getEventContext(Event)
Modifier and Type | Method and Description |
---|---|
void |
acknowledge()
Acknowledges the message that was deserialized into the event associated to this
EventContext . |
BaseDestination |
getDestination()
Gets the
Destination which received
the message that was deserialized into the event associated to this EventContext . |
java.lang.Object |
getMessage()
Gets the message that was deserialized into the event associated to this
EventContext . |
boolean |
reply(Event replyEvent)
Replies with the given
Event to
the message that was deserialized into the event associated to this EventContext . |
void |
rollback()
Rolls back the message that was deserialized into the event associated to this
EventContext . |
boolean reply(Event replyEvent)
Event
to
the message that was deserialized into the event associated to this EventContext
.replyEvent
- reply eventvoid acknowledge()
EventContext
.
Also called when an Event is consumed.void rollback()
EventContext
.BaseDestination getDestination()
Destination
which received
the message that was deserialized into the event associated to this EventContext
.Destination
which received the event corresponding to
this EventContext
.java.lang.Object getMessage()
EventContext
.EventContext
.