Package-level declarations

This package provides classes and interfaces related to command processing at the server side.

Types

Link copied to clipboard
public abstract class AbstractCommandDispatcher implements CommandDispatcher, ContextAware
The abstract base for non-aggregate classes that dispatch commands to their methods and post resulting events to EventBus.
Link copied to clipboard
The abstract base for classes that generate commands in response to incoming messages.
Link copied to clipboard
public abstract class AbstractCommandHandler extends AbstractCommandDispatcher implements CommandHandler
The abstract base for non-aggregate classes that expose command handling methods and post their results to EventBus.
Link copied to clipboard
Marks a method as command handler.
Link copied to clipboard
@Retention(value = RUNTIME)
@Target(value = METHOD)
public @interface Command
Marks a commanding method.
Link copied to clipboard
public interface Commander implements CommandReceiver, EventReceiver
An interface common for objects that post one or more command in response to an incoming message.
Link copied to clipboard
public interface CommandHandler implements CommandReceiver
A common interface for objects which declare one or more methods assigned to handle commands, producing events in response.
Link copied to clipboard
public abstract class CommandHandlingEntity<I, S extends EntityState, B extends ValidatingBuilder<S>> extends TransactionalEntity<I, S, B> implements CommandHandler
An entity that handles commands.
Link copied to clipboard
public interface CommandReceiver implements EventProducer
Common interface for all objects that receive commands in the end of the dispatching.
Link copied to clipboard
public final class DispatchCommand<I>
A command dispatch operation.
Link copied to clipboard
public final class Rejections
A set of utilities for working with rejections and ThrowableMessages.