A C D E F H L M N O P R S T
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- addAsyncSubscriber(EventHandler<EVENT_TYPE>) - Method in class dk.cloudcreate.essentials.reactive.LocalEventBus
-
Add an asynchronous subscriber/consumer
- addCommandHandler(CommandHandler) - Method in class dk.cloudcreate.essentials.reactive.command.LocalCommandBus
-
Add a new command handler.
- addSyncSubscriber(EventHandler<EVENT_TYPE>) - Method in class dk.cloudcreate.essentials.reactive.LocalEventBus
-
Add a synchronous subscriber/consumer
- AnnotatedCommandHandler - Class in dk.cloudcreate.essentials.reactive.command
-
Extending this class will allow you to colocate multiple related Command handling methods inside the same class and use it together with the
LocalCommandBus
Each method must accept a single Command argument, may return a value or return void and be annotated with theEventHandlerannotation.
The method argument type is matched against the concrete command type usingClass.isAssignableFrom(Class).
The method accessibility can be any combination of private, protected, public, etc.
Example: - AnnotatedCommandHandler() - Constructor for class dk.cloudcreate.essentials.reactive.command.AnnotatedCommandHandler
- AnnotatedEventHandler<EVENT_TYPE> - Class in dk.cloudcreate.essentials.reactive
-
Extending this class will allow you to colocate multiple related Event handling methods inside the same class and use it together with the
LocalEventBus
Each method must accept a single Event argument, return void and be annotated with theEventHandlerannotation.
The method argument type is matched against the concrete event type usingClass.isAssignableFrom(Class).
The method accessibility can be any combination of private, protected, public, etc.
Example: - AnnotatedEventHandler() - Constructor for class dk.cloudcreate.essentials.reactive.AnnotatedEventHandler
- AsyncEventHandler - Annotation Type in dk.cloudcreate.essentials.reactive.spring
-
Annotate an
EventHandler/AnnotatedEventHandlerwith this annotation to have theEventHandlerbe registered as an asynchronous event-handler with the defaultLocalEventBus(default is registering them as a synchronous event handler).
C
- canHandle(Class<?>) - Method in class dk.cloudcreate.essentials.reactive.command.AnnotatedCommandHandler
- canHandle(Class<?>) - Method in interface dk.cloudcreate.essentials.reactive.command.CommandHandler
-
This method is called by the
LocalCommandBusto check if this concreteCommandHandlersupports a given command type - CommandHandler - Interface in dk.cloudcreate.essentials.reactive.command
-
Common interface for all Command message handlers
A command handler can choose support to 1 or more command types - commandType - Variable in exception dk.cloudcreate.essentials.reactive.command.SendCommandException
D
- dk.cloudcreate.essentials.reactive - module dk.cloudcreate.essentials.reactive
- dk.cloudcreate.essentials.reactive - package dk.cloudcreate.essentials.reactive
- dk.cloudcreate.essentials.reactive.command - package dk.cloudcreate.essentials.reactive.command
- dk.cloudcreate.essentials.reactive.spring - package dk.cloudcreate.essentials.reactive.spring
E
- event - Variable in exception dk.cloudcreate.essentials.reactive.PublishException
- EventHandler<EVENT_TYPE> - Interface in dk.cloudcreate.essentials.reactive
-
Common interface for all Event message handlers
F
- findCommandHandlerCapableOfHandling(Object) - Method in class dk.cloudcreate.essentials.reactive.command.LocalCommandBus
-
Find a
CommandHandlercapable of handling the given command
H
- handle(EventHandler<EVENT_TYPE>, EVENT_TYPE, Exception) - Method in interface dk.cloudcreate.essentials.reactive.OnErrorHandler
-
Will be called if a given consumer/subscriber fails to handle a message
- handle(EVENT_TYPE) - Method in class dk.cloudcreate.essentials.reactive.AnnotatedEventHandler
- handle(EVENT_TYPE) - Method in interface dk.cloudcreate.essentials.reactive.EventHandler
- handle(Object) - Method in class dk.cloudcreate.essentials.reactive.command.AnnotatedCommandHandler
- handle(Object) - Method in interface dk.cloudcreate.essentials.reactive.command.CommandHandler
-
This method is called by the
LocalCommandBusafter it has determined that only thisCommandHandlerinstance is capable of handling the command (based on the commands type) - Handler - Annotation Type in dk.cloudcreate.essentials.reactive
-
Method annotation that can be applied to any single argument method inside
AnnotatedCommandHandlerorAnnotatedEventHandler.
Depending on which class you extend the rules that apply to each method may be different.
Common for all is that the method accessibility can be any combination of private, protected, public, etc. - hasAsyncSubscriber(EventHandler<EVENT_TYPE>) - Method in class dk.cloudcreate.essentials.reactive.LocalEventBus
- hasCommandHandler(CommandHandler) - Method in class dk.cloudcreate.essentials.reactive.command.LocalCommandBus
- hasSyncSubscriber(EventHandler<EVENT_TYPE>) - Method in class dk.cloudcreate.essentials.reactive.LocalEventBus
L
- LocalCommandBus - Class in dk.cloudcreate.essentials.reactive.command
-
The
LocalCommandBusprovides an indirection between a command and theCommandHandlerthat's capable of handling the command.
Commands can be sent synchronously usingLocalCommandBus.send(Object)or asynchronously usingLocalCommandBus.sendAsync(Object)that returns aMono.
The handling of a command usually doesn't return any value (according to the principles of CQRS), however theLocalCommandBusAPI allows aCommandHandlerto return a value if needed (e.g. - LocalCommandBus() - Constructor for class dk.cloudcreate.essentials.reactive.command.LocalCommandBus
- LocalEventBus<EVENT_TYPE> - Class in dk.cloudcreate.essentials.reactive
-
Simple event bus that supports both synchronous and asynchronous subscribers that are registered and listening for events published within the local the JVM
You can have multiple instances of the LocalEventBus deployed with the local JVM, but usually one event bus is sufficient.
Example: - LocalEventBus(String, int, OnErrorHandler<EVENT_TYPE>) - Constructor for class dk.cloudcreate.essentials.reactive.LocalEventBus
-
Create a
LocalEventBuswith the given name, the given number of parallel asynchronous processing threads - LocalEventBus(String, Scheduler, OnErrorHandler<EVENT_TYPE>) - Constructor for class dk.cloudcreate.essentials.reactive.LocalEventBus
-
Create a
LocalEventBuswith the given name, the given number of parallel asynchronous processing threads
M
- MultipleCommandHandlersFoundException - Exception in dk.cloudcreate.essentials.reactive.command
- MultipleCommandHandlersFoundException(Class<?>, String) - Constructor for exception dk.cloudcreate.essentials.reactive.command.MultipleCommandHandlersFoundException
N
- NoCommandHandlerFoundException - Exception in dk.cloudcreate.essentials.reactive.command
- NoCommandHandlerFoundException(Class<?>, String) - Constructor for exception dk.cloudcreate.essentials.reactive.command.NoCommandHandlerFoundException
O
- OnErrorHandler<EVENT_TYPE> - Interface in dk.cloudcreate.essentials.reactive
-
Error Handler interface for the
LocalEventBus
P
- postProcessAfterInitialization(Object, String) - Method in class dk.cloudcreate.essentials.reactive.spring.ReactiveHandlersBeanPostProcessor
- postProcessBeforeDestruction(Object, String) - Method in class dk.cloudcreate.essentials.reactive.spring.ReactiveHandlersBeanPostProcessor
- publish(EVENT_TYPE) - Method in class dk.cloudcreate.essentials.reactive.LocalEventBus
-
Publish the event to all subscribers/consumer
First we call all asynchronous subscribers, after which we will call all synchronous subscribers on the calling thread (i.e. - PublishException - Exception in dk.cloudcreate.essentials.reactive
- PublishException(String, Object) - Constructor for exception dk.cloudcreate.essentials.reactive.PublishException
- PublishException(String, Throwable, Object) - Constructor for exception dk.cloudcreate.essentials.reactive.PublishException
R
- ReactiveHandlersBeanPostProcessor - Class in dk.cloudcreate.essentials.reactive.spring
-
When using Spring or Spring Boot it will be easier to register the
LocalEventBus,LocalCommandBus,CommandHandlerandEventHandlerinstances as @Bean or @Component and automatically have theCommandHandlerbeans registered as with the singleLocalCommandBusbean and theEventHandlerbeans registered as subscribers with the singleLocalEventBusbean. - ReactiveHandlersBeanPostProcessor() - Constructor for class dk.cloudcreate.essentials.reactive.spring.ReactiveHandlersBeanPostProcessor
- removeAsyncSubscriber(EventHandler<EVENT_TYPE>) - Method in class dk.cloudcreate.essentials.reactive.LocalEventBus
-
Remove an asynchronous subscriber/consumer
- removeCommandHandler(CommandHandler) - Method in class dk.cloudcreate.essentials.reactive.command.LocalCommandBus
-
Remove a command handler.
- removeSyncSubscriber(EventHandler<EVENT_TYPE>) - Method in class dk.cloudcreate.essentials.reactive.LocalEventBus
-
Remove a synchronous subscriber/consumer
- requiresDestruction(Object) - Method in class dk.cloudcreate.essentials.reactive.spring.ReactiveHandlersBeanPostProcessor
S
- send(C) - Method in class dk.cloudcreate.essentials.reactive.command.LocalCommandBus
-
The send command synchronously and process the command on the sending thread
- sendAsync(C) - Method in class dk.cloudcreate.essentials.reactive.command.LocalCommandBus
-
The send command asynchronously and process the command on a
Schedulers.boundedElastic()thread - SendCommandException - Exception in dk.cloudcreate.essentials.reactive.command
- SendCommandException(Class<?>, String) - Constructor for exception dk.cloudcreate.essentials.reactive.command.SendCommandException
- SendCommandException(Class<?>, String, Exception) - Constructor for exception dk.cloudcreate.essentials.reactive.command.SendCommandException
- setApplicationContext(ApplicationContext) - Method in class dk.cloudcreate.essentials.reactive.spring.ReactiveHandlersBeanPostProcessor
T
- toString() - Method in class dk.cloudcreate.essentials.reactive.LocalEventBus
All Classes All Packages