RejectionEnvelope

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

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

Properties

Link copied to clipboard
public final EventEnvelope event

Functions

Link copied to clipboard
public EventContext context()
Obtains the context of the message.
Link copied to clipboard
public static RejectionEnvelope from(EventEnvelope event)
Creates a new RejectionEnvelope from the given event.
public static RejectionEnvelope from(CommandEnvelope origin, Throwable throwable)
Creates an instance of Rejection from the rejected command and a Throwable caused by the ThrowableMessage.
Link copied to clipboard
Link copied to clipboard
public Command getOrigin()
Obtains the origin command.
Link copied to clipboard
public CommandMessage getOriginMessage()
Obtains the origin command message.
Link copied to clipboard
public EventId id()
The ID of the message.
Link copied to clipboard
public RejectionMessage message()
Obtains the message.
Link copied to clipboard
Obtains the message class.
Link copied to clipboard
public TenantId tenantId()
Obtains ID of the tenant in which context the actor works.

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()