public class SpringMessagingTerminal extends Object
EventBus implementation that delegates all subscription and publishing
requests to a Spring Messaging channel.
Use setChannel(org.springframework.messaging.SubscribableChannel) to set the channel to delegate all
the requests to.
This EventBus will automatically wrap and unwrap events in Messages
and EventListeners in MessageHandlers.
This implementation expects the Spring Messaging to be configured to handle messages asynchronously.| Constructor and Description |
|---|
SpringMessagingTerminal(org.axonframework.eventhandling.EventBus eventBus) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
send(List<? extends org.axonframework.eventhandling.EventMessage<?>> events) |
void |
setChannel(org.springframework.messaging.SubscribableChannel channel)
Sets the Spring Messaging Channel that this event bus should publish events to.
|
void |
shutDown() |
void |
start() |
org.axonframework.common.Registration |
subscribe(Consumer<List<? extends org.axonframework.eventhandling.EventMessage<?>>> eventProcessor) |
public SpringMessagingTerminal(org.axonframework.eventhandling.EventBus eventBus)
public void start()
public void shutDown()
protected void send(List<? extends org.axonframework.eventhandling.EventMessage<?>> events)
public org.axonframework.common.Registration subscribe(Consumer<List<? extends org.axonframework.eventhandling.EventMessage<?>>> eventProcessor)
public void setChannel(org.springframework.messaging.SubscribableChannel channel)
channel - the channel to publish events toCopyright © 2010–2016. All rights reserved.