Uses of Interface
org.infinispan.commands.VisitableCommand
Package
Description
Commands that operate on the cache, either locally or remotely.
Contexts contain information of a specific invocation on the cache, such as its origins, scope
(transactional or non-transactional), as well as invocation-specific flags.
This package contains different context implementations, selected dynamically based on the type of invocation.
Infinispan is designed around a set of interceptors around a data container.
-
Uses of VisitableCommand in org.infinispan.cache.impl
Modifier and TypeMethodDescription<T> T
InvocationHelper.invoke
(ContextBuilder builder, VisitableCommand command, int keyCount) Same asInvocationHelper.invoke(InvocationContext, VisitableCommand)
but usingbuilder
to build theInvocationContext
to use.<T> T
InvocationHelper.invoke
(VisitableCommand command, int keyCount) Same asInvocationHelper.invoke(ContextBuilder, VisitableCommand, int)
but using the defaultContextBuilder
.<T> T
InvocationHelper.invoke
(InvocationContext context, VisitableCommand command) Invokes thecommand
usingcontext
.<T> CompletableFuture<T>
InvocationHelper.invokeAsync
(ContextBuilder builder, VisitableCommand command, int keyCount) Same asInvocationHelper.invoke(InvocationContext, VisitableCommand)
but using theInvocationContext
created bybuilder
.<T> CompletableFuture<T>
InvocationHelper.invokeAsync
(VisitableCommand command, int keyCount) Same asInvocationHelper.invoke(ContextBuilder, VisitableCommand, int)
but using the defaultContextBuilder
.<T> CompletableFuture<T>
InvocationHelper.invokeAsync
(InvocationContext context, VisitableCommand command) -
Uses of VisitableCommand in org.infinispan.commands
Modifier and TypeInterfaceDescriptioninterface
Commands of this type manipulate data in the cache.interface
Flags modify behavior of command such as whether or not to invoke certain commands remotely, check cache store etc.Modifier and TypeClassDescriptionclass
Base class for those commands that can carry flags.class
Base class for commands that carry topology id.Modifier and TypeMethodDescriptionorg.infinispan.commands.remote.SingleRpcCommand
CommandsFactory.buildSingleRpcCommand
(VisitableCommand command) Builds a SingleRpcCommand "envelope" containing a single ReplicableCommandorg.infinispan.commands.remote.SingleRpcCommand
CommandsFactoryImpl.buildSingleRpcCommand
(VisitableCommand call) org.infinispan.xsite.SingleXSiteRpcCommand
CommandsFactory.buildSingleXSiteRpcCommand
(VisitableCommand command) Builds SingleRpcCommand used to performVisitableCommand
on the backup site,org.infinispan.xsite.SingleXSiteRpcCommand
CommandsFactoryImpl.buildSingleXSiteRpcCommand
(VisitableCommand command) protected Object
AbstractVisitor.handleDefault
(InvocationContext ctx, VisitableCommand command) A default handler for all commands visited.AbstractVisitor.visitUnknownCommand
(InvocationContext ctx, VisitableCommand command) Visitor.visitUnknownCommand
(InvocationContext ctx, VisitableCommand command) Deprecated, for removal: This API element is subject to removal in a future version.since 11.0 will be removed in the next major version with no direct replacement.Modifier and TypeMethodDescriptionvoid
AbstractVisitor.visitCollection
(InvocationContext ctx, Collection<? extends VisitableCommand> toVisit) Helper method to visit a collection of VisitableCommands. -
Uses of VisitableCommand in org.infinispan.commands.read
Modifier and TypeClassDescriptionclass
org.infinispan.commands.read.AbstractDataCommand
-
Uses of VisitableCommand in org.infinispan.context
Modifier and TypeMethodDescriptionInvocationContextFactory.createRemoteInvocationContextForCommand
(VisitableCommand cacheCommand, Address origin) AsInvocationContextFactory.createRemoteInvocationContext(org.infinispan.remoting.transport.Address)
, but returning the flags to the context from the Command if any Flag was set. -
Uses of VisitableCommand in org.infinispan.context.impl
Modifier and TypeMethodDescriptionAbstractInvocationContextFactory.createRemoteInvocationContextForCommand
(VisitableCommand cacheCommand, Address origin) -
Uses of VisitableCommand in org.infinispan.expiration.impl
Modifier and TypeClassDescriptionclass
This command updates a cache entry's last access timestamp. -
Uses of VisitableCommand in org.infinispan.functional.impl
Modifier and TypeMethodDescriptionstatic Object
StatsEnvelope.unpack
(InvocationContext ctx, VisitableCommand command, Object o) static Object
StatsEnvelope.unpackCollection
(InvocationContext ctx, VisitableCommand command, Object o) static Object
StatsEnvelope.unpackStream
(InvocationContext ctx, VisitableCommand command, Object o) -
Uses of VisitableCommand in org.infinispan.interceptors
Modifier and TypeInterfaceDescriptioninterface
InvocationCallback<C extends VisitableCommand>
Base interface for all callbacks used byBaseAsyncInterceptor
andInvocationStage
methods.interface
InvocationExceptionFunction<C extends VisitableCommand>
interface
InvocationFinallyAction<C extends VisitableCommand>
interface
InvocationFinallyFunction<C extends VisitableCommand>
interface
InvocationSuccessAction<C extends VisitableCommand>
interface
InvocationSuccessFunction<C extends VisitableCommand>
Modifier and TypeMethodDescriptionabstract <C extends VisitableCommand>
ObjectInvocationStage.addCallback
(InvocationContext ctx, C command, InvocationCallback<C> function) After the current stage completes, invokefunction
and return its result.<C extends VisitableCommand>
ObjectSyncInvocationStage.addCallback
(InvocationContext ctx, C command, InvocationCallback<C> function) <C extends VisitableCommand>
ObjectInvocationStage.andExceptionally
(InvocationContext ctx, C command, InvocationExceptionFunction<C> function) After the current stage completes exceptionally, invokefunction
and return its result.<C extends VisitableCommand>
ObjectSyncInvocationStage.andExceptionally
(InvocationContext ctx, C command, InvocationExceptionFunction<C> function) <C extends VisitableCommand>
InvocationStageInvocationStage.andExceptionallyMakeStage
(InvocationContext ctx, C command, InvocationExceptionFunction<C> function) After the current stage completes exceptionally, invokefunction
and return its result.<C extends VisitableCommand>
InvocationStageSyncInvocationStage.andExceptionallyMakeStage
(InvocationContext ctx, C command, InvocationExceptionFunction<C> function) <C extends VisitableCommand>
ObjectInvocationStage.andFinally
(InvocationContext ctx, C command, InvocationFinallyAction<C> action) After the current stage completes, invokeaction
.<C extends VisitableCommand>
ObjectSyncInvocationStage.andFinally
(InvocationContext ctx, C command, InvocationFinallyAction<C> action) <C extends VisitableCommand>
InvocationStageInvocationStage.andFinallyMakeStage
(InvocationContext ctx, C command, InvocationFinallyAction<C> action) After the current stage completes, invokeaction
.<C extends VisitableCommand>
InvocationStageSyncInvocationStage.andFinallyMakeStage
(InvocationContext ctx, C command, InvocationFinallyAction<C> action) <C extends VisitableCommand>
ObjectInvocationStage.andHandle
(InvocationContext ctx, C command, InvocationFinallyFunction<C> function) After the current stage completes, invokefunction
and return its result.<C extends VisitableCommand>
ObjectSyncInvocationStage.andHandle
(InvocationContext ctx, C command, InvocationFinallyFunction<C> function) <C extends VisitableCommand>
InvocationStageInvocationStage.andHandleMakeStage
(InvocationContext ctx, C command, InvocationFinallyFunction<C> function) After the current stage completes, invokefunction
and return its result.<C extends VisitableCommand>
InvocationStageSyncInvocationStage.andHandleMakeStage
(InvocationContext ctx, C command, InvocationFinallyFunction<C> function) final <C extends VisitableCommand>
ObjectBaseAsyncInterceptor.invokeNextAndExceptionally
(InvocationContext ctx, C command, InvocationExceptionFunction<C> function) Invoke the next interceptor, possibly with a new command, and execute anInvocationCallback
after all the interceptors have finished with an exception.final <C extends VisitableCommand>
ObjectBaseAsyncInterceptor.invokeNextAndFinally
(InvocationContext ctx, C command, InvocationFinallyAction<C> action) Invoke the next interceptor, possibly with a new command, and execute anInvocationCallback
after all the interceptors have finished, with or without an exception.final <C extends VisitableCommand>
ObjectBaseAsyncInterceptor.invokeNextAndHandle
(InvocationContext ctx, C command, InvocationFinallyFunction<C> function) Invoke the next interceptor, possibly with a new command, and execute anInvocationCallback
after all the interceptors have finished, with or without an exception.final <C extends VisitableCommand>
ObjectBaseAsyncInterceptor.invokeNextThenAccept
(InvocationContext ctx, C command, InvocationSuccessAction<C> action) Invoke the next interceptor, possibly with a new command, and execute anInvocationCallback
after all the interceptors have finished successfully.final <C extends VisitableCommand>
ObjectBaseAsyncInterceptor.invokeNextThenApply
(InvocationContext ctx, C command, InvocationSuccessFunction<C> function) Invoke the next interceptor, possibly with a new command, and execute anInvocationCallback
after all the interceptors have finished successfully.<C extends VisitableCommand>
ObjectInvocationStage.thenAccept
(InvocationContext ctx, C command, InvocationSuccessAction<C> action) After the current stage completes successfully, invokeaction
.<C extends VisitableCommand>
ObjectSyncInvocationStage.thenAccept
(InvocationContext ctx, C command, InvocationSuccessAction<C> action) <C extends VisitableCommand>
InvocationStageInvocationStage.thenAcceptMakeStage
(InvocationContext ctx, C command, InvocationSuccessAction<C> action) After the current stage completes successfully, invokeaction
.<C extends VisitableCommand>
InvocationStageSyncInvocationStage.thenAcceptMakeStage
(InvocationContext ctx, C command, InvocationSuccessAction<C> action) <C extends VisitableCommand>
ObjectInvocationStage.thenApply
(InvocationContext ctx, C command, InvocationSuccessFunction<C> function) After the current stage completes successfully, invokefunction
and return its result.<C extends VisitableCommand>
ObjectSyncInvocationStage.thenApply
(InvocationContext ctx, C command, InvocationSuccessFunction<C> function) <C extends VisitableCommand>
InvocationStageInvocationStage.thenApplyMakeStage
(InvocationContext ctx, C command, InvocationSuccessFunction<C> function) After the current stage completes successfully, invokefunction
and return its result.<C extends VisitableCommand>
InvocationStageSyncInvocationStage.thenApplyMakeStage
(InvocationContext ctx, C command, InvocationSuccessFunction<C> function) After the current stage completes successfully, invokefunction
and return its result.Modifier and TypeMethodDescriptionExceptionSyncInvocationStage.addCallback
(InvocationContext ctx, VisitableCommand command, InvocationCallback function) ExceptionSyncInvocationStage.andExceptionally
(InvocationContext ctx, VisitableCommand command, InvocationExceptionFunction function) ExceptionSyncInvocationStage.andFinally
(InvocationContext ctx, VisitableCommand command, InvocationFinallyAction action) ExceptionSyncInvocationStage.andHandle
(InvocationContext ctx, VisitableCommand command, InvocationFinallyFunction function) final Object
BaseAsyncInterceptor.asyncInvokeNext
(InvocationContext ctx, VisitableCommand command, Collection<? extends CompletionStage<?>> delays) Suspend invocation until alldelays
complete, then if successful invoke the next interceptor.final Object
BaseAsyncInterceptor.asyncInvokeNext
(InvocationContext ctx, VisitableCommand command, CompletionStage<?> delay) Suspend the invocation untildelay
completes, then if successful invoke the next interceptor.final Object
BaseAsyncInterceptor.asyncInvokeNext
(InvocationContext ctx, VisitableCommand command, InvocationStage invocationStage) Suspend the invocation untilinvocationStage
completes, then if successful invoke the next interceptor.protected Object
DDAsyncInterceptor.handleDefault
(InvocationContext ctx, VisitableCommand command) AsyncInterceptorChain.invoke
(InvocationContext ctx, VisitableCommand command) Walks the command through the interceptor chain.EmptyAsyncInterceptorChain.invoke
(InvocationContext ctx, VisitableCommand command) AsyncInterceptorChain.invokeAsync
(InvocationContext ctx, VisitableCommand command) Walks the command through the interceptor chain.EmptyAsyncInterceptorChain.invokeAsync
(InvocationContext ctx, VisitableCommand command) final Object
BaseAsyncInterceptor.invokeNext
(InvocationContext ctx, VisitableCommand command) Invoke the next interceptor, possibly with a new command.AsyncInterceptorChain.invokeStage
(InvocationContext ctx, VisitableCommand command) Walks the command through the interceptor chain.EmptyAsyncInterceptorChain.invokeStage
(InvocationContext ctx, VisitableCommand command) ExceptionSyncInvocationStage.thenAccept
(InvocationContext ctx, VisitableCommand command, InvocationSuccessAction function) ExceptionSyncInvocationStage.thenApply
(InvocationContext ctx, VisitableCommand command, InvocationSuccessFunction function) ExceptionSyncInvocationStage.thenReturn
(InvocationContext ctx, VisitableCommand command, Object returnValue) InvocationStage.thenReturn
(InvocationContext ctx, VisitableCommand command, Object returnValue) Overrides the return value of thisInvocationStage
if it is completed successfully.SyncInvocationStage.thenReturn
(InvocationContext ctx, VisitableCommand command, Object returnValue) AsyncInterceptor.visitCommand
(InvocationContext ctx, VisitableCommand command) Perform some work for a command invocation.final Object
DDAsyncInterceptor.visitCommand
(InvocationContext ctx, VisitableCommand command) DDAsyncInterceptor.visitUnknownCommand
(InvocationContext ctx, VisitableCommand command) -
Uses of VisitableCommand in org.infinispan.partitionhandling.impl
Modifier and TypeMethodDescriptionprotected void
PartitionHandlingInterceptor.postTxCommandCheck
(InvocationContext rCtx, VisitableCommand rCommand, Object rv)