Uses of Interface
org.infinispan.commands.VisitableCommand
Packages that use 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
Methods in org.infinispan.cache.impl with parameters of type VisitableCommandModifier and TypeMethodDescription<T> TInvocationHelper.invoke(ContextBuilder builder, VisitableCommand command, int keyCount) Same asInvocationHelper.invoke(InvocationContext, VisitableCommand)but usingbuilderto build theInvocationContextto use.<T> TInvocationHelper.invoke(VisitableCommand command, int keyCount) Same asInvocationHelper.invoke(ContextBuilder, VisitableCommand, int)but using the defaultContextBuilder.<T> TInvocationHelper.invoke(InvocationContext context, VisitableCommand command) Invokes thecommandusingcontext.<T> CompletableFuture<T>InvocationHelper.invokeAsync(ContextBuilder builder, VisitableCommand command, int keyCount) Same asInvocationHelper.invoke(InvocationContext, VisitableCommand)but using theInvocationContextcreated 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
Subinterfaces of VisitableCommand in org.infinispan.commandsModifier and TypeInterfaceDescriptioninterfaceCommands of this type manipulate data in the cache.interfaceFlags modify behavior of command such as whether or not to invoke certain commands remotely, check cache store etc.Classes in org.infinispan.commands that implement VisitableCommandModifier and TypeClassDescriptionclassBase class for those commands that can carry flags.classBase class for commands that carry topology id.Methods in org.infinispan.commands with parameters of type VisitableCommandModifier and TypeMethodDescriptionorg.infinispan.commands.remote.SingleRpcCommandCommandsFactory.buildSingleRpcCommand(VisitableCommand command) Builds a SingleRpcCommand "envelope" containing a single ReplicableCommandorg.infinispan.commands.remote.SingleRpcCommandCommandsFactoryImpl.buildSingleRpcCommand(VisitableCommand call) org.infinispan.xsite.SingleXSiteRpcCommandCommandsFactory.buildSingleXSiteRpcCommand(VisitableCommand command) Builds SingleRpcCommand used to performVisitableCommandon the backup site,org.infinispan.xsite.SingleXSiteRpcCommandCommandsFactoryImpl.buildSingleXSiteRpcCommand(VisitableCommand command) protected ObjectAbstractVisitor.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.Method parameters in org.infinispan.commands with type arguments of type VisitableCommandModifier and TypeMethodDescriptionvoidAbstractVisitor.visitCollection(InvocationContext ctx, Collection<? extends VisitableCommand> toVisit) Helper method to visit a collection of VisitableCommands. -
Uses of VisitableCommand in org.infinispan.commands.read
Classes in org.infinispan.commands.read that implement VisitableCommandModifier and TypeClassDescriptionclassorg.infinispan.commands.read.AbstractDataCommand -
Uses of VisitableCommand in org.infinispan.context
Methods in org.infinispan.context with parameters of type VisitableCommandModifier 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
Methods in org.infinispan.context.impl with parameters of type VisitableCommandModifier and TypeMethodDescriptionAbstractInvocationContextFactory.createRemoteInvocationContextForCommand(VisitableCommand cacheCommand, Address origin) -
Uses of VisitableCommand in org.infinispan.expiration.impl
Classes in org.infinispan.expiration.impl that implement VisitableCommandModifier and TypeClassDescriptionclassThis command updates a cache entry's last access timestamp. -
Uses of VisitableCommand in org.infinispan.functional.impl
Methods in org.infinispan.functional.impl with parameters of type VisitableCommandModifier and TypeMethodDescriptionstatic ObjectStatsEnvelope.unpack(InvocationContext ctx, VisitableCommand command, Object o) static ObjectStatsEnvelope.unpackCollection(InvocationContext ctx, VisitableCommand command, Object o) static ObjectStatsEnvelope.unpackStream(InvocationContext ctx, VisitableCommand command, Object o) -
Uses of VisitableCommand in org.infinispan.interceptors
Classes in org.infinispan.interceptors with type parameters of type VisitableCommandModifier and TypeInterfaceDescriptioninterfaceInvocationCallback<C extends VisitableCommand>Base interface for all callbacks used byBaseAsyncInterceptorandInvocationStagemethods.interfaceInvocationExceptionFunction<C extends VisitableCommand>interfaceInvocationFinallyAction<C extends VisitableCommand>interfaceInvocationFinallyFunction<C extends VisitableCommand>interfaceInvocationSuccessAction<C extends VisitableCommand>interfaceInvocationSuccessFunction<C extends VisitableCommand>Methods in org.infinispan.interceptors with type parameters of type VisitableCommandModifier and TypeMethodDescriptionabstract <C extends VisitableCommand>
ObjectInvocationStage.addCallback(InvocationContext ctx, C command, InvocationCallback<C> function) After the current stage completes, invokefunctionand 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, invokefunctionand 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, invokefunctionand 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, invokefunctionand 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, invokefunctionand 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 anInvocationCallbackafter 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 anInvocationCallbackafter 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 anInvocationCallbackafter 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 anInvocationCallbackafter 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 anInvocationCallbackafter 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, invokefunctionand 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, invokefunctionand return its result.<C extends VisitableCommand>
InvocationStageSyncInvocationStage.thenApplyMakeStage(InvocationContext ctx, C command, InvocationSuccessFunction<C> function) After the current stage completes successfully, invokefunctionand return its result.Methods in org.infinispan.interceptors with parameters of type VisitableCommandModifier 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 ObjectBaseAsyncInterceptor.asyncInvokeNext(InvocationContext ctx, VisitableCommand command, Collection<? extends CompletionStage<?>> delays) Suspend invocation until alldelayscomplete, then if successful invoke the next interceptor.final ObjectBaseAsyncInterceptor.asyncInvokeNext(InvocationContext ctx, VisitableCommand command, CompletionStage<?> delay) Suspend the invocation untildelaycompletes, then if successful invoke the next interceptor.final ObjectBaseAsyncInterceptor.asyncInvokeNext(InvocationContext ctx, VisitableCommand command, InvocationStage invocationStage) Suspend the invocation untilinvocationStagecompletes, then if successful invoke the next interceptor.protected ObjectDDAsyncInterceptor.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 ObjectBaseAsyncInterceptor.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 thisInvocationStageif 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 ObjectDDAsyncInterceptor.visitCommand(InvocationContext ctx, VisitableCommand command) DDAsyncInterceptor.visitUnknownCommand(InvocationContext ctx, VisitableCommand command) -
Uses of VisitableCommand in org.infinispan.partitionhandling.impl
Methods in org.infinispan.partitionhandling.impl with parameters of type VisitableCommandModifier and TypeMethodDescriptionprotected voidPartitionHandlingInterceptor.postTxCommandCheck(InvocationContext rCtx, VisitableCommand rCommand, Object rv)