CommandEnvelope

public final class CommandEnvelope extends AbstractMessageEnvelope<I, T, C> implements SignalEnvelope<I, T, C>

The holder of a Command which provides convenient access to its properties.

Functions

Link copied to clipboard
public Command command()
Obtains the enclosed command object.
Link copied to clipboard
public CommandContext context()
Obtains the command context.
Link copied to clipboard
public CommandId id()
Obtains the command ID.
Link copied to clipboard
public CommandMessage message()
Obtains the command message.
Link copied to clipboard
Obtains the command class.
Link copied to clipboard
public TypeName messageTypeName()
Obtains TypeName of the command message.
Link copied to clipboard
public static CommandEnvelope of(Command command)
Creates an instance with the passed command.
Link copied to clipboard
public TenantId tenantId()
Obtains the tenant ID of the command.

Inherited functions

Link copied to clipboard
public ActorContext actorContext()
Obtains an actor context for the wrapped message.
Link copied to clipboard
public Origin asMessageOrigin()
Packs this message as an Origin of an event.
Link copied to clipboard
public boolean equals(Object obj)
Link copied to clipboard
public int hashCode()
Link copied to clipboard
public MessageId messageId()
Obtains the message ID of the signal.
Link copied to clipboard
public T outerObject()
Obtains the object which contains the message of interest.
Link copied to clipboard
public String toString()