DefaultCommandRoute

public final class DefaultCommandRoute<I> implements CommandRoute<I, M>

Obtains an ID of a command target entity from the first field of the command message.

Parameters

<I>

the type of target entity IDs

Functions

Link copied to clipboard
public I apply(CommandMessage message, CommandContext ignored)
Obtains entity ID(s) from the passed message and its context.
Link copied to clipboard
public static boolean exists(CommandMessage commandMessage)
Verifies of the passed command message potentially has a field with an entity ID.
Link copied to clipboard
public static DefaultCommandRoute<I> newInstance<I>(Class<I> idClass)
Creates a new instance.

Inherited functions

Link copied to clipboard
public BiFunction<T, U, V> andThen<V>(Function<? extends Object, ? extends V> after)
Link copied to clipboard
public abstract R apply(T p, U p1)