DispatchCommand

public final class DispatchCommand<I>

A command dispatch operation.

Dispatches the given command to the given entity and triggers the EntityLifecycle.

Parameters

<I>

the type of entity ID

Functions

Link copied to clipboard
Link copied to clipboard
public CommandHandlingEntity<I, ? extends Object, ? extends Object> entity()
Link copied to clipboard
public static DispatchCommand<I> operationFor<I>(EntityLifecycle lifecycle, CommandHandlingEntity<I, ? extends Object, ? extends Object> entity, CommandEnvelope command)
Link copied to clipboard
public DispatchOutcome perform()
Performs the operation.