public class AxonServerCommandBus extends Object implements org.axonframework.commandhandling.CommandBus
| Modifier and Type | Class and Description |
|---|---|
protected class |
AxonServerCommandBus.CommandRouterSubscriber |
| Constructor and Description |
|---|
AxonServerCommandBus(PlatformConnectionManager platformConnectionManager,
AxonServerConfiguration configuration,
org.axonframework.commandhandling.CommandBus localSegment,
org.axonframework.serialization.Serializer serializer,
org.axonframework.commandhandling.distributed.RoutingStrategy routingStrategy) |
AxonServerCommandBus(PlatformConnectionManager platformConnectionManager,
AxonServerConfiguration configuration,
org.axonframework.commandhandling.CommandBus localSegment,
org.axonframework.serialization.Serializer serializer,
org.axonframework.commandhandling.distributed.RoutingStrategy routingStrategy,
CommandPriorityCalculator priorityCalculator) |
| Modifier and Type | Method and Description |
|---|---|
void |
disconnect() |
<C> void |
dispatch(org.axonframework.commandhandling.CommandMessage<C> command) |
<C,R> void |
dispatch(org.axonframework.commandhandling.CommandMessage<C> commandMessage,
org.axonframework.commandhandling.CommandCallback<? super C,? super R> commandCallback) |
org.axonframework.common.Registration |
registerDispatchInterceptor(org.axonframework.messaging.MessageDispatchInterceptor<? super org.axonframework.commandhandling.CommandMessage<?>> dispatchInterceptor) |
org.axonframework.common.Registration |
registerHandlerInterceptor(org.axonframework.messaging.MessageHandlerInterceptor<? super org.axonframework.commandhandling.CommandMessage<?>> handlerInterceptor) |
org.axonframework.common.Registration |
subscribe(String s,
org.axonframework.messaging.MessageHandler<? super org.axonframework.commandhandling.CommandMessage<?>> messageHandler) |
public AxonServerCommandBus(PlatformConnectionManager platformConnectionManager, AxonServerConfiguration configuration, org.axonframework.commandhandling.CommandBus localSegment, org.axonframework.serialization.Serializer serializer, org.axonframework.commandhandling.distributed.RoutingStrategy routingStrategy)
public AxonServerCommandBus(PlatformConnectionManager platformConnectionManager, AxonServerConfiguration configuration, org.axonframework.commandhandling.CommandBus localSegment, org.axonframework.serialization.Serializer serializer, org.axonframework.commandhandling.distributed.RoutingStrategy routingStrategy, CommandPriorityCalculator priorityCalculator)
platformConnectionManager - creates connection to AxonServer platformconfiguration - contains client and component names used to identify the application in AxonServerlocalSegment - handles incoming commandsserializer - serializer/deserializer for command requests and responsesroutingStrategy - determines routing key based on command messagepriorityCalculator - calculates the request priority based on the content and adds it to the requestpublic <C> void dispatch(org.axonframework.commandhandling.CommandMessage<C> command)
dispatch in interface org.axonframework.commandhandling.CommandBuspublic <C,R> void dispatch(org.axonframework.commandhandling.CommandMessage<C> commandMessage,
org.axonframework.commandhandling.CommandCallback<? super C,? super R> commandCallback)
dispatch in interface org.axonframework.commandhandling.CommandBuspublic org.axonframework.common.Registration subscribe(String s, org.axonframework.messaging.MessageHandler<? super org.axonframework.commandhandling.CommandMessage<?>> messageHandler)
subscribe in interface org.axonframework.commandhandling.CommandBuspublic org.axonframework.common.Registration registerHandlerInterceptor(org.axonframework.messaging.MessageHandlerInterceptor<? super org.axonframework.commandhandling.CommandMessage<?>> handlerInterceptor)
registerHandlerInterceptor in interface org.axonframework.messaging.MessageHandlerInterceptorSupport<org.axonframework.commandhandling.CommandMessage<?>>public void disconnect()
public org.axonframework.common.Registration registerDispatchInterceptor(org.axonframework.messaging.MessageDispatchInterceptor<? super org.axonframework.commandhandling.CommandMessage<?>> dispatchInterceptor)
registerDispatchInterceptor in interface org.axonframework.messaging.MessageDispatchInterceptorSupport<org.axonframework.commandhandling.CommandMessage<?>>Copyright © 2010–2018. All rights reserved.