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)
DefaultEventContext
event
- Event the associated eventdestination
- the instance of the underlying transport.public boolean reply(Event replyEvent)
reply
in interface EventContext
replyEvent
- Reply eventpublic BaseDestination getDestination()
getDestination
in interface EventContext
public void acknowledge()
acknowledge
in interface EventContext
public void rollback()
rollback
in interface EventContext
public java.lang.Object getMessage()
getMessage
in interface EventContext