Index
All Classes and Interfaces|All Packages
A
- applyToCommandBuilder(Command.Builder<C>) - Method in class org.incendo.cloud.processors.confirmation.ConfirmationManager
-
Applies the
ConfirmationManager.META_CONFIRMATION_REQUIREDmeta key to the givenbuilder.
B
- build() - Method in class org.incendo.cloud.processors.confirmation.ImmutableConfirmationConfiguration.Builder
-
Builds a new
ImmutableConfirmationConfiguration. - build() - Method in interface org.incendo.cloud.processors.confirmation.ImmutableConfirmationConfiguration.BuildFinal
-
Builds a new
ImmutableConfirmationConfiguration. - builder() - Static method in interface org.incendo.cloud.processors.confirmation.ConfirmationConfiguration
-
Returns a new configuration builder.
- builder() - Static method in class org.incendo.cloud.processors.confirmation.ImmutableConfirmationConfiguration
-
Creates a builder for
ImmutableConfirmationConfiguration. - bypassConfirmation() - Method in interface org.incendo.cloud.processors.confirmation.ConfirmationConfiguration
-
Returns a predicate that determines whether the
CommandContextshould bypass the confirmation requirement. - bypassConfirmation() - Method in class org.incendo.cloud.processors.confirmation.ImmutableConfirmationConfiguration
-
Returns a predicate that determines whether the
CommandContextshould bypass the confirmation requirement. - bypassConfirmation(Predicate<CommandContext<C>>) - Method in class org.incendo.cloud.processors.confirmation.ImmutableConfirmationConfiguration.Builder
-
Initializes the value for the
bypassConfirmationattribute. - bypassConfirmation(Predicate<CommandContext<C>>) - Method in interface org.incendo.cloud.processors.confirmation.ImmutableConfirmationConfiguration.BuildFinal
-
Initializes the value for the
bypassConfirmationattribute.
C
- cache() - Method in interface org.incendo.cloud.processors.confirmation.ConfirmationConfiguration
-
Returns the cache used to store pending commands.
- cache() - Method in class org.incendo.cloud.processors.confirmation.ImmutableConfirmationConfiguration
-
Returns the cache used to store pending commands.
- cache(CloudCache<C, ConfirmationContext<C>>) - Method in class org.incendo.cloud.processors.confirmation.ImmutableConfirmationConfiguration.Builder
-
Initializes the value for the
cacheattribute. - cache(CloudCache<C, ConfirmationContext<C>>) - Method in interface org.incendo.cloud.processors.confirmation.ImmutableConfirmationConfiguration.CacheBuildStage
-
Initializes the value for the
cacheattribute. - command() - Method in interface org.incendo.cloud.processors.confirmation.ConfirmationContext
-
Returns the command that requires confirmation.
- commandContext() - Method in interface org.incendo.cloud.processors.confirmation.ConfirmationContext
-
Returns the execution context that required confirmation.
- configuration() - Method in class org.incendo.cloud.processors.confirmation.ConfirmationManager
-
Returns the configuration for this manager.
- Confirmation - Annotation Interface in org.incendo.cloud.processors.confirmation.annotation
-
Indicates that the command requires confirmation.
- ConfirmationBuilderModifier<C> - Class in org.incendo.cloud.processors.confirmation.annotation
-
Builder modifier that will add the
ConfirmationManager.META_CONFIRMATION_REQUIREDmeta value to the command builder. - ConfirmationConfiguration<C> - Interface in org.incendo.cloud.processors.confirmation
-
Configuration for a
ConfirmationManager. - ConfirmationContext<C> - Interface in org.incendo.cloud.processors.confirmation
-
Context that stores information about a pending confirmation.
- confirmationManager(Function<ImmutableConfirmationConfiguration.CacheBuildStage<C>, ImmutableConfirmationConfiguration.BuildFinal<C>>) - Static method in class org.incendo.cloud.processors.confirmation.ConfirmationManager
-
Creates a new confirmation manager using the given
configuration. - confirmationManager(ConfirmationConfiguration<C>) - Static method in class org.incendo.cloud.processors.confirmation.ConfirmationManager
-
Creates a new confirmation manager using the given
configuration. - ConfirmationManager<C> - Class in org.incendo.cloud.processors.confirmation
-
Manager for the confirmation system.
- confirmationRequiredNotifier() - Method in interface org.incendo.cloud.processors.confirmation.ConfirmationConfiguration
-
Returns a consumer that gets invoked when a command requires confirmation.
- confirmationRequiredNotifier() - Method in class org.incendo.cloud.processors.confirmation.ImmutableConfirmationConfiguration
-
Returns a consumer that gets invoked when a command requires confirmation.
- confirmationRequiredNotifier(BiConsumer<C, ConfirmationContext<C>>) - Method in class org.incendo.cloud.processors.confirmation.ImmutableConfirmationConfiguration.Builder
-
Initializes the value for the
confirmationRequiredNotifierattribute. - confirmationRequiredNotifier(BiConsumer<C, ConfirmationContext<C>>) - Method in interface org.incendo.cloud.processors.confirmation.ImmutableConfirmationConfiguration.ConfirmationRequiredNotifierBuildStage
-
Initializes the value for the
confirmationRequiredNotifierattribute. - copyOf(ConfirmationConfiguration<C>) - Static method in class org.incendo.cloud.processors.confirmation.ImmutableConfirmationConfiguration
-
Creates an immutable copy of a
ConfirmationConfigurationvalue. - createExecutionHandler() - Method in class org.incendo.cloud.processors.confirmation.ConfirmationManager
-
Returns a
CommandExecutionHandlerthat will execute the pending command for the command sender, or invoke theConfirmationConfiguration.noPendingCommandNotifier(). - createPostprocessor() - Method in class org.incendo.cloud.processors.confirmation.ConfirmationManager
-
Returns a
CommandPostprocessorthat will prevent commands from executing if they are marked as needing confirmation. - creationTime() - Method in interface org.incendo.cloud.processors.confirmation.ConfirmationContext
-
Returns the time the context was created.
E
- equals(Object) - Method in class org.incendo.cloud.processors.confirmation.ImmutableConfirmationConfiguration
-
This instance is equal to all instances of
ImmutableConfirmationConfigurationthat have equal attribute values. - expiration() - Method in interface org.incendo.cloud.processors.confirmation.ConfirmationConfiguration
-
Returns the time to keep the pending commands for.
- expiration() - Method in class org.incendo.cloud.processors.confirmation.ImmutableConfirmationConfiguration
-
Returns the time to keep the pending commands for.
- expiration(Duration) - Method in class org.incendo.cloud.processors.confirmation.ImmutableConfirmationConfiguration.Builder
-
Initializes the value for the
expirationattribute. - expiration(Duration) - Method in interface org.incendo.cloud.processors.confirmation.ImmutableConfirmationConfiguration.BuildFinal
-
Initializes the value for the
expirationattribute.
H
- hashCode() - Method in class org.incendo.cloud.processors.confirmation.ImmutableConfirmationConfiguration
-
Computes a hash code from attributes:
cache,noPendingCommandNotifier,confirmationRequiredNotifier,bypassConfirmation,expiration.
I
- ImmutableConfirmationConfiguration<C> - Class in org.incendo.cloud.processors.confirmation
-
Immutable implementation of
ConfirmationConfiguration. - ImmutableConfirmationConfiguration.Builder<C> - Class in org.incendo.cloud.processors.confirmation
-
Builds instances of type
ImmutableConfirmationConfiguration. - ImmutableConfirmationConfiguration.BuildFinal<C> - Interface in org.incendo.cloud.processors.confirmation
- ImmutableConfirmationConfiguration.CacheBuildStage<C> - Interface in org.incendo.cloud.processors.confirmation
- ImmutableConfirmationConfiguration.ConfirmationRequiredNotifierBuildStage<C> - Interface in org.incendo.cloud.processors.confirmation
- ImmutableConfirmationConfiguration.NoPendingCommandNotifierBuildStage<C> - Interface in org.incendo.cloud.processors.confirmation
- install(AnnotationParser<C>) - Static method in class org.incendo.cloud.processors.confirmation.annotation.ConfirmationBuilderModifier
-
Adds the confirmation builder modifier to the given
annotationParser.
M
- META_CONFIRMATION_REQUIRED - Static variable in class org.incendo.cloud.processors.confirmation.ConfirmationManager
-
CommandMetakey that indicates that the command requires a confirmation to be executed. - modifyBuilder(Confirmation, Command.Builder<C>) - Method in class org.incendo.cloud.processors.confirmation.annotation.ConfirmationBuilderModifier
N
- noPendingCommandNotifier() - Method in interface org.incendo.cloud.processors.confirmation.ConfirmationConfiguration
-
Returns a consumer that gets invoked when a sender tries to invoke the confirmation handler without having any pending commands.
- noPendingCommandNotifier() - Method in class org.incendo.cloud.processors.confirmation.ImmutableConfirmationConfiguration
-
Returns a consumer that gets invoked when a sender tries to invoke the confirmation handler without having any pending commands.
- noPendingCommandNotifier(Consumer<C>) - Method in class org.incendo.cloud.processors.confirmation.ImmutableConfirmationConfiguration.Builder
-
Initializes the value for the
noPendingCommandNotifierattribute. - noPendingCommandNotifier(Consumer<C>) - Method in interface org.incendo.cloud.processors.confirmation.ImmutableConfirmationConfiguration.NoPendingCommandNotifierBuildStage
-
Initializes the value for the
noPendingCommandNotifierattribute.
O
- of() - Static method in class org.incendo.cloud.processors.confirmation.annotation.ConfirmationBuilderModifier
-
Creates a new builder modifier that will add the
ConfirmationManager.META_CONFIRMATION_REQUIREDmeta value to the command builder. - of(Instant, Command<C>, CommandContext<C>) - Static method in interface org.incendo.cloud.processors.confirmation.ConfirmationContext
-
Creates a new confirmation context.
- of(CloudCache<C, ConfirmationContext<C>>, Consumer<C>, BiConsumer<C, ConfirmationContext<C>>, Predicate<CommandContext<C>>, Duration) - Static method in class org.incendo.cloud.processors.confirmation.ImmutableConfirmationConfiguration
-
Construct a new immutable
ConfirmationConfigurationinstance. - org.incendo.cloud.processors.confirmation - package org.incendo.cloud.processors.confirmation
-
CommandPostprocessorthat adds the ability to require commands to be confirmed before being executed. - org.incendo.cloud.processors.confirmation.annotation - package org.incendo.cloud.processors.confirmation.annotation
-
Utilities for using the confirmation system together with cloud-annotations.
P
- popPending(C) - Method in class org.incendo.cloud.processors.confirmation.ConfirmationManager
-
Removes the
ConfirmationContextstored for the givensenderand returns it.
T
- toString() - Method in class org.incendo.cloud.processors.confirmation.ImmutableConfirmationConfiguration
-
Prints the immutable value
ConfirmationConfigurationwith attribute values.
W
- withBypassConfirmation(Predicate<CommandContext<C>>) - Method in class org.incendo.cloud.processors.confirmation.ImmutableConfirmationConfiguration
-
Copy the current immutable object by setting a value for the
bypassConfirmationattribute. - withCache(CloudCache<C, ConfirmationContext<C>>) - Method in class org.incendo.cloud.processors.confirmation.ImmutableConfirmationConfiguration
-
Copy the current immutable object by setting a value for the
cacheattribute. - withConfirmationRequiredNotifier(BiConsumer<C, ConfirmationContext<C>>) - Method in class org.incendo.cloud.processors.confirmation.ImmutableConfirmationConfiguration
-
Copy the current immutable object by setting a value for the
confirmationRequiredNotifierattribute. - withExpiration(Duration) - Method in class org.incendo.cloud.processors.confirmation.ImmutableConfirmationConfiguration
-
Copy the current immutable object by setting a value for the
expirationattribute. - withNoPendingCommandNotifier(Consumer<C>) - Method in class org.incendo.cloud.processors.confirmation.ImmutableConfirmationConfiguration
-
Copy the current immutable object by setting a value for the
noPendingCommandNotifierattribute.
All Classes and Interfaces|All Packages