A C D E F H L M N O P R S T 
All Classes All Packages

A

accept(EVENT_TYPE) - Method in class dk.cloudcreate.essentials.reactive.AnnotatedEventHandler
 
addAsyncSubscriber(Consumer<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(Consumer<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 the EventHandler annotation.
The method argument type is matched against the concrete command type using Class.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 the EventHandler annotation.
The method argument type is matched against the concrete event type using Class.isAssignableFrom(Class).
The method accessibility can be any combination of private, protected, public, etc.
Example:
AnnotatedEventHandler() - Constructor for class dk.cloudcreate.essentials.reactive.AnnotatedEventHandler
 

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 LocalCommandBus to check if this concrete CommandHandler supports 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
 

E

event - Variable in exception dk.cloudcreate.essentials.reactive.PublishException
 
EventHandler - Annotation Type in dk.cloudcreate.essentials.reactive
Method annotation that can be applied to any single argument method inside AnnotatedEventHandler after which the method will be a candidate for event message handling.
Each method must accept a single Event argument, return void and be annotated with the EventHandler annotation.
The method argument type is matched against the concrete event type using Class.isAssignableFrom(Class).
The method accessibility can be any combination of private, protected, public, etc.

F

findCommandHandlerCapableOfHandling(Object) - Method in class dk.cloudcreate.essentials.reactive.command.LocalCommandBus
Find a CommandHandler capable of handling the given command

H

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 LocalCommandBus after it has determined that only this CommandHandler instance is capable of handling the command (based on the commands type)
handle(Consumer<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
Handler - Annotation Type in dk.cloudcreate.essentials.reactive.command
Method annotation that can be applied to any single argument method inside AnnotatedCommandHandler after which the method will be a candidate for command message handling.
The single method argument type is matched against the concrete command type using Class.isAssignableFrom(Class).
The method accessibility can be any combination of private, protected, public, etc.
The method may return a value or void.

L

LocalCommandBus - Class in dk.cloudcreate.essentials.reactive.command
The LocalCommandBus provides an indirection between a command and the CommandHandler that's capable of handling the command.
Commands can be sent synchronously using LocalCommandBus.send(Object) or asynchronously using LocalCommandBus.sendAsync(Object) that returns a Mono.
The handling of a command usually doesn't return any value (according to the principles of CQRS), however the LocalCommandBus API allows a CommandHandler to 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 LocalEventBus with 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 LocalEventBus with 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

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

removeAsyncSubscriber(Consumer<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(Consumer<EVENT_TYPE>) - Method in class dk.cloudcreate.essentials.reactive.LocalEventBus
Remove a synchronous subscriber/consumer

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
 

T

toString() - Method in class dk.cloudcreate.essentials.reactive.LocalEventBus
 
A C D E F H L M N O P R S T 
All Classes All Packages