Interface ConfirmationContext<C>
- Type Parameters:
C- command sender type
Context that stores information about a pending confirmation.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptioncommand()Returns the command that requires confirmation.Returns the execution context that required confirmation.Returns the time the context was created.static <C> @NonNull ConfirmationContext<C>of(@NonNull Instant creationTime, @NonNull Command<C> command, @NonNull CommandContext<C> commandContext) Creates a new confirmation context.
-
Method Details
-
of
static <C> @NonNull ConfirmationContext<C> of(@NonNull Instant creationTime, @NonNull Command<C> command, @NonNull CommandContext<C> commandContext) Creates a new confirmation context.- Type Parameters:
C- command sender type- Parameters:
creationTime- time of creationcommand- command that requires confirmationcommandContext- command context that requires confirmation- Returns:
- the created context
-
creationTime
Returns the time the context was created.- Returns:
- the creation time
-
command
Returns the command that requires confirmation.- Returns:
- the command
-
commandContext
@NonNull CommandContext<C> commandContext()Returns the execution context that required confirmation.- Returns:
- the command context
-