public class DefaultEventContext extends java.lang.Object implements EventContext
BaseDestination.getEventContext(Event)| Constructor and Description |
|---|
DefaultEventContext(Event event,
BaseDestination destination)
Initializes an instance of
DefaultEventContext |
| Modifier and Type | Method and Description |
|---|---|
void |
acknowledge()
Default implementation for acknowledge.Does nothing.
|
BaseDestination |
getDestination()
Default implementation for getDestination.Returns the associated destination.
|
java.lang.Object |
getMessage()
Default implementation for getMessage.Does nothing/returns null.
|
boolean |
reply(Event replyEvent)
Default implementation for reply.Does nothing.
|
void |
rollback()
Default implementation for rollback.Does nothing.
|
public DefaultEventContext(Event event, BaseDestination destination)
DefaultEventContextevent - Event the associated eventdestination - the instance of the underlying transport.public boolean reply(Event replyEvent)
reply in interface EventContextreplyEvent - Reply eventpublic BaseDestination getDestination()
getDestination in interface EventContextpublic void acknowledge()
acknowledge in interface EventContextpublic void rollback()
rollback in interface EventContextpublic java.lang.Object getMessage()
getMessage in interface EventContext