Index
All Classes and Interfaces|All Packages|Serialized Form
A
- addHandler(UnitOfWork.Phase, Consumer<UnitOfWork<T>>) - Method in class org.axonframework.disruptor.commandhandling.DisruptorUnitOfWork
- AggregateBlacklistedException - Exception in org.axonframework.disruptor.commandhandling
-
Exception indicating that an aggregate has been blacklisted by the DisruptorCommandBus.
- AggregateBlacklistedException(String, String, Throwable) - Constructor for exception org.axonframework.disruptor.commandhandling.AggregateBlacklistedException
-
Initializes the exception with given
aggregateIdentifier, given explanatorymessageandcause. - AggregateStateCorruptedException - Exception in org.axonframework.disruptor.commandhandling
-
Exception indicating that the changes in an aggregate (generated events) are ignored by the DisruptorCommandBus, because it cannot guarantee that these changes have been applied to an aggregate instance with the correct state.
- AggregateStateCorruptedException(String, String) - Constructor for exception org.axonframework.disruptor.commandhandling.AggregateStateCorruptedException
-
Initializes the exception with given
aggregateIdentifierand given explanatorymessage. - AggregateStateCorruptedException(String, String, Throwable) - Constructor for exception org.axonframework.disruptor.commandhandling.AggregateStateCorruptedException
-
Initializes the exception with given
aggregateIdentifier, given explanatorymessageandcause.
B
- BlacklistDetectingCallback<C,
R> - Class in org.axonframework.disruptor.commandhandling -
Wrapper for command handler Callbacks that detects blacklisted aggregates and starts a cleanup process when an aggregate is blacklisted.
- BlacklistDetectingCallback(CommandCallback<? super C, R>, RingBuffer<CommandHandlingEntry>, BiConsumer<CommandMessage<? extends C>, CommandCallback<? super C, R>>, boolean) - Constructor for class org.axonframework.disruptor.commandhandling.BlacklistDetectingCallback
-
Initializes the callback which allows the given
commandto be rescheduled on the givenringBufferif it failed due to a corrupt state. - bufferSize(int) - Method in class org.axonframework.disruptor.commandhandling.DisruptorCommandBus.Builder
-
Sets the buffer size to use.
- build() - Method in class org.axonframework.disruptor.commandhandling.DisruptorCommandBus.Builder
-
Initializes a
DisruptorCommandBusas specified through this Builder. - builder() - Static method in class org.axonframework.disruptor.commandhandling.DisruptorCommandBus
-
Instantiate a Builder to be able to create a
DisruptorCommandBus. - Builder() - Constructor for class org.axonframework.disruptor.commandhandling.DisruptorCommandBus.Builder
C
- cache(Cache) - Method in class org.axonframework.disruptor.commandhandling.DisruptorCommandBus.Builder
-
Sets the
Cachein which loaded aggregates will be stored. - CommandHandlerInvoker - Class in org.axonframework.disruptor.commandhandling
-
Component of the DisruptorCommandBus that invokes the command handler.
- CommandHandlerInvoker(Cache, int) - Constructor for class org.axonframework.disruptor.commandhandling.CommandHandlerInvoker
-
Create an aggregate invoker instance for the given
segmentandcache. - CommandHandlingEntry - Class in org.axonframework.disruptor.commandhandling
-
DataHolder for the DisruptorCommandBus.
- CommandHandlingEntry() - Constructor for class org.axonframework.disruptor.commandhandling.CommandHandlingEntry
-
Initializes the CommandHandlingEntry
- commandTargetResolver(CommandTargetResolver) - Method in class org.axonframework.disruptor.commandhandling.DisruptorCommandBus.Builder
-
Sets the
CommandTargetResolverthat must be used to indicate which Aggregate instance will be invoked by an incoming command. - coolingDownPeriod(long) - Method in class org.axonframework.disruptor.commandhandling.DisruptorCommandBus.Builder
-
Sets the cooling down period in milliseconds.
- createRepository(EventStore, AggregateFactory<T>) - Method in class org.axonframework.disruptor.commandhandling.DisruptorCommandBus
-
Creates a repository instance for an Event Sourced aggregate that is created by the given
eventStoreandaggregateFactory. - createRepository(EventStore, AggregateFactory<T>, SnapshotTriggerDefinition) - Method in class org.axonframework.disruptor.commandhandling.DisruptorCommandBus
-
Creates a repository instance for an Event Sourced aggregate, source from given
eventStore, that is created by the givenaggregateFactory. - createRepository(EventStore, AggregateFactory<T>, SnapshotTriggerDefinition, ParameterResolverFactory) - Method in class org.axonframework.disruptor.commandhandling.CommandHandlerInvoker
-
Create a repository instance for an aggregate created by the given
aggregateFactory. - createRepository(EventStore, AggregateFactory<T>, SnapshotTriggerDefinition, ParameterResolverFactory) - Method in class org.axonframework.disruptor.commandhandling.DisruptorCommandBus
-
Creates a repository instance for an Event Sourced aggregate, sourced from given
eventStore, that is created by the givenaggregateFactory. - createRepository(EventStore, AggregateFactory<T>, SnapshotTriggerDefinition, ParameterResolverFactory, HandlerDefinition, RepositoryProvider) - Method in class org.axonframework.disruptor.commandhandling.DisruptorCommandBus
-
Creates a repository instance for an Event Sourced aggregate, sourced from given
eventStore, that is created by the givenaggregateFactory. - createRepository(EventStore, AggregateFactory<T>, SnapshotTriggerDefinition, RepositoryProvider) - Method in class org.axonframework.disruptor.commandhandling.DisruptorCommandBus
-
Creates a repository instance for an Event Sourced aggregate, source from given
eventStore, that is created by the givenaggregateFactory. - createRepository(EventStore, AggregateFactory<T>, ParameterResolverFactory) - Method in class org.axonframework.disruptor.commandhandling.DisruptorCommandBus
-
Creates a repository instance for an Event Sourced aggregate that is created by the given
aggregateFactoryand sourced from giveneventStore. - createRepository(EventStore, AggregateFactory<T>, ParameterResolverFactory, HandlerDefinition, RepositoryProvider) - Method in class org.axonframework.disruptor.commandhandling.DisruptorCommandBus
-
Creates a repository instance for an Event Sourced aggregate that is created by the given
aggregateFactoryand sourced from giveneventStore. - createRepository(EventStore, AggregateFactory<T>, RepositoryProvider) - Method in class org.axonframework.disruptor.commandhandling.DisruptorCommandBus
-
Creates a repository instance for an Event Sourced aggregate that is created by the given
eventStoreandaggregateFactory. - createRepository(EventStore, RepositoryProvider, AggregateFactory<T>, SnapshotTriggerDefinition, ParameterResolverFactory, HandlerDefinition) - Method in class org.axonframework.disruptor.commandhandling.CommandHandlerInvoker
-
Create a repository instance for an aggregate created by the given
aggregateFactory.
D
- defaultCommandCallback(CommandCallback<Object, Object>) - Method in class org.axonframework.disruptor.commandhandling.DisruptorCommandBus.Builder
-
Sets the callback to use when commands are dispatched in a "fire and forget" method, such as
DisruptorCommandBus.dispatch(CommandMessage). - dispatch(CommandMessage<C>) - Method in class org.axonframework.disruptor.commandhandling.DisruptorCommandBus
- dispatch(CommandMessage<C>, CommandCallback<? super C, ? super R>) - Method in class org.axonframework.disruptor.commandhandling.DisruptorCommandBus
- dispatchInterceptors(List<MessageDispatchInterceptor<CommandMessage<?>>>) - Method in class org.axonframework.disruptor.commandhandling.DisruptorCommandBus.Builder
-
Configures
MessageDispatchInterceptorof generic typeCommandMessageto use with theDisruptorCommandBuswhen commands are dispatched. - DisruptorCommandBus - Class in org.axonframework.disruptor.commandhandling
-
Asynchronous CommandBus implementation with very high performance characteristics.
- DisruptorCommandBus(DisruptorCommandBus.Builder) - Constructor for class org.axonframework.disruptor.commandhandling.DisruptorCommandBus
-
Instantiate a
DisruptorCommandBusbased on the fields contained in theDisruptorCommandBus.Builder. - DisruptorCommandBus.Builder - Class in org.axonframework.disruptor.commandhandling
-
Builder class to instantiate a
DisruptorCommandBus. - DisruptorUnitOfWork<T extends org.axonframework.messaging.Message<?>> - Class in org.axonframework.disruptor.commandhandling
-
Specialized UnitOfWork instance for the
DisruptorCommandBus. - DisruptorUnitOfWork() - Constructor for class org.axonframework.disruptor.commandhandling.DisruptorUnitOfWork
- duplicateCommandHandlerResolver(DuplicateCommandHandlerResolver) - Method in class org.axonframework.disruptor.commandhandling.DisruptorCommandBus.Builder
-
Sets the
DuplicateCommandHandlerResolverused to resolves the road to take when a duplicate command handler is subscribed.
E
- EventPublisher - Class in org.axonframework.disruptor.commandhandling
-
Component of the DisruptorCommandBus that stores and publishes events generated by the command's execution.
- EventPublisher(Executor, TransactionManager, RollbackConfiguration, int) - Constructor for class org.axonframework.disruptor.commandhandling.EventPublisher
-
Initializes the EventPublisher to publish Events to the given
eventStoreandeventBusfor aggregate of givenaggregateType. - executeWithResult(Callable<R>, RollbackConfiguration) - Method in class org.axonframework.disruptor.commandhandling.DisruptorUnitOfWork
- executor(Executor) - Method in class org.axonframework.disruptor.commandhandling.DisruptorCommandBus.Builder
-
Sets the
Executorthat provides the processing resources (Threads) for the components of theDisruptorCommandBus.
G
- getAggregateIdentifier() - Method in exception org.axonframework.disruptor.commandhandling.AggregateStateCorruptedException
-
Returns the identifier of the blacklisted aggregate.
- getAggregateIdentifier() - Method in class org.axonframework.disruptor.commandhandling.CommandHandlingEntry
-
Returns the identifier of the aggregate to recover.
- getCallback() - Method in class org.axonframework.disruptor.commandhandling.CommandHandlingEntry
-
Returns the CommandCallback instance for the executed command.
- getExecutionResult() - Method in class org.axonframework.disruptor.commandhandling.DisruptorUnitOfWork
- getInvocationInterceptorChain() - Method in class org.axonframework.disruptor.commandhandling.CommandHandlingEntry
-
Returns the InterceptorChain for the invocation process registered with this entry, or
nullif none is available. - getInvokerId() - Method in class org.axonframework.disruptor.commandhandling.CommandHandlingEntry
-
Returns the Identifier of the invoker that is chosen to handle this entry.
- getMessage() - Method in class org.axonframework.disruptor.commandhandling.DisruptorUnitOfWork
- getPublisherId() - Method in class org.axonframework.disruptor.commandhandling.CommandHandlingEntry
-
Returns the Identifier of the publisher that is chosen to handle this entry.
- getPublisherInterceptorChain() - Method in class org.axonframework.disruptor.commandhandling.CommandHandlingEntry
-
Returns the InterceptorChain for the publication process registered with this entry, or
nullif none is available. - getRepository(Class<?>) - Static method in class org.axonframework.disruptor.commandhandling.CommandHandlerInvoker
-
Returns the Repository instance for Aggregate with given
typeIdentifierused by the CommandHandlerInvoker that is running on the current thread. - getResult() - Method in class org.axonframework.disruptor.commandhandling.CommandHandlingEntry
-
Returns the result of the command's execution, or
nullif the command is not yet executed or resulted in an exception.
H
- hasDelegate() - Method in class org.axonframework.disruptor.commandhandling.BlacklistDetectingCallback
-
Indicates whether this callback has a delegate that needs to be notified of the command handling result
I
- invokerInterceptors(List<MessageHandlerInterceptor<? super CommandMessage<?>>>) - Method in class org.axonframework.disruptor.commandhandling.DisruptorCommandBus.Builder
-
Set the
MessageHandlerInterceptorof generic typeCommandMessageto use with theDisruptorCommandBusduring in the invocation thread. - invokerThreadCount(int) - Method in class org.axonframework.disruptor.commandhandling.DisruptorCommandBus.Builder
-
Sets the number of Threads that should be used to invoke the Command Handlers.
- isRecoverEntry() - Method in class org.axonframework.disruptor.commandhandling.CommandHandlingEntry
-
Indicates whether this entry is a recovery entry.
M
- messageMonitor(MessageMonitor<? super CommandMessage<?>>) - Method in class org.axonframework.disruptor.commandhandling.DisruptorCommandBus.Builder
-
Sets the
MessageMonitorof generic typeCommandMessageused the to monitor the command bus.
N
- notifyHandlers(UnitOfWork.Phase) - Method in class org.axonframework.disruptor.commandhandling.DisruptorUnitOfWork
O
- onEvent(CommandHandlingEntry, long, boolean) - Method in class org.axonframework.disruptor.commandhandling.CommandHandlerInvoker
- onEvent(CommandHandlingEntry, long, boolean) - Method in class org.axonframework.disruptor.commandhandling.EventPublisher
- onResult(CommandMessage<? extends C>, CommandResultMessage<? extends R>) - Method in class org.axonframework.disruptor.commandhandling.BlacklistDetectingCallback
- onShutdown() - Method in class org.axonframework.disruptor.commandhandling.CommandHandlerInvoker
- onStart() - Method in class org.axonframework.disruptor.commandhandling.CommandHandlerInvoker
- org.axonframework.disruptor.commandhandling - package org.axonframework.disruptor.commandhandling
P
- parent() - Method in class org.axonframework.disruptor.commandhandling.DisruptorUnitOfWork
- pause() - Method in class org.axonframework.disruptor.commandhandling.DisruptorUnitOfWork
-
Pause this Unit of Work by deregistering it with the
CurrentUnitOfWork. - producerType(ProducerType) - Method in class org.axonframework.disruptor.commandhandling.DisruptorCommandBus.Builder
-
Sets the
ProducerTypeto use by theDisruptor. - publisherInterceptors(List<MessageHandlerInterceptor<CommandMessage<?>>>) - Method in class org.axonframework.disruptor.commandhandling.DisruptorCommandBus.Builder
-
Configures the
MessageHandlerInterceptorof generic typeCommandMessageto use with theDisruptorCommandBusduring the publication of changes. - publisherThreadCount(int) - Method in class org.axonframework.disruptor.commandhandling.DisruptorCommandBus.Builder
-
Sets the number of Threads that should be used to store and publish the generated Events.
R
- registerAggregateIdentifier(String) - Method in class org.axonframework.disruptor.commandhandling.CommandHandlingEntry
-
Registers the identifier of the aggregate that will process the next command.
- registerDispatchInterceptor(MessageDispatchInterceptor<? super CommandMessage<?>>) - Method in class org.axonframework.disruptor.commandhandling.DisruptorCommandBus
- registerHandlerInterceptor(MessageHandlerInterceptor<? super CommandMessage<?>>) - Method in class org.axonframework.disruptor.commandhandling.DisruptorCommandBus
- rescheduleCommandsOnCorruptState(boolean) - Method in class org.axonframework.disruptor.commandhandling.DisruptorCommandBus.Builder
-
Set the indicator specifying whether commands that failed because they were executed against potentially corrupted aggregate state should be automatically rescheduled.
- reset(CommandMessage<?>, MessageHandler<? super CommandMessage<?>>, int, int, BlacklistDetectingCallback<?, ?>, List<MessageHandlerInterceptor<? super CommandMessage<?>>>, List<MessageHandlerInterceptor<? super CommandMessage<?>>>) - Method in class org.axonframework.disruptor.commandhandling.CommandHandlingEntry
-
Resets this entry, preparing it for use for another command.
- reset(T) - Method in class org.axonframework.disruptor.commandhandling.DisruptorUnitOfWork
-
Resets the state of this Unit of Work, by setting its phase to
NOT_STARTED, replacing the message of this Unit of Work with givenmessage, and clearing its collection of registered handlers. - resetAsCallable(Callable<Object>, int, int, BlacklistDetectingCallback<Object, Object>) - Method in class org.axonframework.disruptor.commandhandling.CommandHandlingEntry
-
Resets this entry, preparing it to run given
callablefrom within theinvocationInterceptorChain. - resetAsRecoverEntry(String) - Method in class org.axonframework.disruptor.commandhandling.CommandHandlingEntry
-
Resets this entry, preparing it for use as a recovery entry.
- resume() - Method in class org.axonframework.disruptor.commandhandling.DisruptorUnitOfWork
-
Resume a paused Unit of Work by registering it with the
CurrentUnitOfWork. - rollbackConfiguration(RollbackConfiguration) - Method in class org.axonframework.disruptor.commandhandling.DisruptorCommandBus.Builder
-
Sets the
RollbackConfigurationwhich allows you to specify when aUnitOfWorkshould be rolled back.
S
- setExecutionResult(ExecutionResult) - Method in class org.axonframework.disruptor.commandhandling.DisruptorUnitOfWork
- setResult(CommandResultMessage<?>) - Method in class org.axonframework.disruptor.commandhandling.CommandHandlingEntry
-
Registers the result of the command's execution, if successful.
- setRollbackCause(Throwable) - Method in class org.axonframework.disruptor.commandhandling.DisruptorUnitOfWork
- stop() - Method in class org.axonframework.disruptor.commandhandling.DisruptorCommandBus
-
Shuts down the command bus.
- subscribe(String, MessageHandler<? super CommandMessage<?>>) - Method in class org.axonframework.disruptor.commandhandling.DisruptorCommandBus
T
- transactionManager(TransactionManager) - Method in class org.axonframework.disruptor.commandhandling.DisruptorCommandBus.Builder
-
Sets the
TransactionManagerto use to manage a transaction around the storage and publication of events. - transformMessage(Function<T, ? extends Message<?>>) - Method in class org.axonframework.disruptor.commandhandling.DisruptorUnitOfWork
V
- validate() - Method in class org.axonframework.disruptor.commandhandling.DisruptorCommandBus.Builder
-
Validate whether the fields contained in this Builder as set accordingly.
W
- waitStrategy(WaitStrategy) - Method in class org.axonframework.disruptor.commandhandling.DisruptorCommandBus.Builder
-
Sets the
WaitStrategywhich is used to make dependent threads wait for tasks to be completed.
All Classes and Interfaces|All Packages|Serialized Form