interface EventEmitter
An emitter sends events
| Type Params | Return Type | Name and description |
|---|---|---|
|
abstract EventEmitter |
notify(java.lang.CharSequence eventId, java.lang.Object[] data)Notify of an event |
|
abstract EventEmitter |
notify(Event event)Notify of an event |
|
abstract EventEmitter |
notify(Event event, TransactionPhase transactionPhase)Notify of an event |
|
abstract EventEmitter |
publish(java.lang.CharSequence eventId, java.lang.Object[] data)Synonym for notify(Event) |
|
abstract EventEmitter |
publish(Event event)Synonym for notify(Event) |
|
abstract EventEmitter |
publish(Event event, TransactionPhase transactionPhase)Synonym for notify(Event, org.springframework.transaction.event.TransactionPhase) |
|
abstract EventEmitter |
sendAndReceive(Event event, groovy.lang.Closure reply)Send and event and receive a reply. |
|
abstract EventEmitter |
sendAndReceive(java.lang.CharSequence eventId, java.lang.Object data, groovy.lang.Closure reply)Send and event and receive a reply. |
Notify of an event
eventId - The eventdata - The dataNotify of an event
event - The eventNotify of an event
event - The eventtransactionPhase - The transaction Phase to use if a transaction is present (defaults to TransactionPhase#AFTER_COMMIT#AFTER_COMMITSynonym for notify(Event)
Synonym for notify(Event)
Synonym for notify(Event, org.springframework.transaction.event.TransactionPhase)
Send and event and receive a reply. If the EventBus is asynchronous the reply may be invoked on a different thread to the caller
event - The eventreply - The reply logicSend and event and receive a reply. If the EventBus is asynchronous the reply may be invoked on a different thread to the caller
eventId - The eventreply - The reply logic