CommandExecutorService.InteractionContextPolicy (enum)

Determines the InteractionContext (the "who" "when" and "where") within which the Command should be executed.

API

CommandExecutorService_InteractionContextPolicy.java
enum InteractionContextPolicy {
  NO_SWITCH     (1)
  SWITCH_USER_ONLY     (2)
  SWITCH_USER_AND_TIME     (3)
  public final BiFunction<InteractionContext, CommandDto, InteractionContext> mapper;
}
1 NO_SWITCH

Execute within the same InteractionContext as the thread calling the CommandExecutorService .

2 SWITCH_USER_ONLY

Execute using an InteractionContext , with the apparent user being taken from the Command .

3 SWITCH_USER_AND_TIME

Execute using an InteractionContext , with the apparent user and time being taken from the Command .

Members

NO_SWITCH

Execute within the same InteractionContext as the thread calling the CommandExecutorService .

For example, regular background commands.

SWITCH_USER_ONLY

Execute using an InteractionContext , with the apparent user being taken from the Command .

SWITCH_USER_AND_TIME

Execute using an InteractionContext , with the apparent user and time being taken from the Command .

For example, replayable commands.