Uses of Interface
org.infinispan.commands.VisitableCommand
-
Packages that use VisitableCommand Package Description org.infinispan.commands Commands that operate on the cache, either locally or remotely.org.infinispan.context 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.org.infinispan.functional.impl org.infinispan.interceptors Infinispan is designed around a set of interceptors around a data container.org.infinispan.interceptors.base Base interceptors containing common, reusable behavior.org.infinispan.interceptors.distribution Interceptors dealing with command replication in distributed/replicated mode.org.infinispan.interceptors.impl Basic interceptorsorg.infinispan.interceptors.totalorder Interceptors dealing with total order.org.infinispan.interceptors.xsite Interceptors dealing with cross-site replication.org.infinispan.partitionhandling.impl org.infinispan.statetransfer Transfer of state to new caches in a cluster.org.infinispan.xsite -
-
Uses of VisitableCommand in org.infinispan.commands
Subinterfaces of VisitableCommand in org.infinispan.commands Modifier and Type Interface Description interface
DataCommand
Commands of this type manipulate data in the cache.interface
FlagAffectedCommand
Flags 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 VisitableCommand Modifier and Type Class Description class
AbstractFlagAffectedCommand
Base class for those commands that can carry flags.class
AbstractTopologyAffectedCommand
Base class for commands that carry topology id.Methods in org.infinispan.commands with parameters of type VisitableCommand Modifier and Type Method Description SingleXSiteRpcCommand
CommandsFactory. buildSingleXSiteRpcCommand(VisitableCommand command)
Builds SingleRpcCommand used to performVisitableCommand
on the backup site,SingleXSiteRpcCommand
CommandsFactoryImpl. buildSingleXSiteRpcCommand(VisitableCommand command)
protected Object
AbstractVisitor. handleDefault(InvocationContext ctx, VisitableCommand command)
A default handler for all commands visited.Object
AbstractVisitor. visitUnknownCommand(InvocationContext ctx, VisitableCommand command)
Object
Visitor. visitUnknownCommand(InvocationContext ctx, VisitableCommand command)
Method parameters in org.infinispan.commands with type arguments of type VisitableCommand Modifier and Type Method Description void
AbstractVisitor. visitCollection(InvocationContext ctx, Collection<? extends VisitableCommand> toVisit)
Helper method to visit a collection of VisitableCommands. -
Uses of VisitableCommand in org.infinispan.context
Methods in org.infinispan.context with parameters of type VisitableCommand Modifier and Type Method Description InvocationContext
AbstractInvocationContextFactory. createRemoteInvocationContextForCommand(VisitableCommand cacheCommand, Address origin)
Deprecated.InvocationContext
InvocationContextFactory. 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.functional.impl
Methods in org.infinispan.functional.impl with parameters of type VisitableCommand Modifier and Type Method Description static 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
Methods in org.infinispan.interceptors with parameters of type VisitableCommand Modifier and Type Method Description void
InvocationFinallyAction. accept(InvocationContext rCtx, VisitableCommand rCommand, Object rv, Throwable throwable)
Process the result or the exception from an invocation stage and possibly throw an exception.void
InvocationSuccessAction. accept(InvocationContext rCtx, VisitableCommand rCommand, Object rv)
Process the result from a successful invocation stage and possibly throw an exception.abstract Object
InvocationStage. addCallback(InvocationContext ctx, VisitableCommand command, InvocationCallback function)
Object
SyncInvocationStage. addCallback(InvocationContext ctx, VisitableCommand command, InvocationCallback function)
Object
InvocationStage. andExceptionally(InvocationContext ctx, VisitableCommand command, InvocationExceptionFunction function)
Object
InvocationStage. andFinally(InvocationContext ctx, VisitableCommand command, InvocationFinallyAction action)
Object
InvocationStage. andHandle(InvocationContext ctx, VisitableCommand command, InvocationFinallyFunction function)
Object
InvocationCallback. apply(InvocationContext rCtx, VisitableCommand rCommand, Object rv, Throwable throwable)
Process the result or the exception from an invocation stage and either return a simple value, return a newInvocationStage
, or throw an exception.default Object
InvocationExceptionFunction. apply(InvocationContext rCtx, VisitableCommand rCommand, Object rv, Throwable throwable)
Object
InvocationExceptionFunction. apply(InvocationContext rCtx, VisitableCommand rCommand, Throwable throwable)
Process the result from a successful invocation stage and either return a simple value, return a newInvocationStage
, or throw an exception.default Object
InvocationFinallyAction. apply(InvocationContext rCtx, VisitableCommand rCommand, Object rv, Throwable throwable)
default Object
InvocationSuccessAction. apply(InvocationContext rCtx, VisitableCommand rCommand, Object rv, Throwable throwable)
Object
InvocationSuccessFunction. apply(InvocationContext rCtx, VisitableCommand rCommand, Object rv)
Process the result from a successful invocation stage and either return a simple value, return a newInvocationStage
, or throw an exception.default Object
InvocationSuccessFunction. apply(InvocationContext rCtx, VisitableCommand rCommand, Object rv, Throwable throwable)
Object
BaseAsyncInterceptor. asyncInvokeNext(InvocationContext ctx, VisitableCommand command, Collection<? extends CompletionStage<?>> delays)
Suspend invocation until alldelays
complete, then if successful invoke the next interceptor.Object
BaseAsyncInterceptor. asyncInvokeNext(InvocationContext ctx, VisitableCommand command, CompletionStage<?> delay)
Suspend the invocation untildelay
completes, then if successful invoke the next interceptor.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)
Object
AsyncInterceptorChain. invoke(InvocationContext ctx, VisitableCommand command)
Walks the command through the interceptor chain.Object
EmptyAsyncInterceptorChain. invoke(InvocationContext ctx, VisitableCommand command)
Object
InterceptorChain. invoke(InvocationContext ctx, VisitableCommand command)
Deprecated.Walks the command through the interceptor chain.CompletableFuture<Object>
AsyncInterceptorChain. invokeAsync(InvocationContext ctx, VisitableCommand command)
Walks the command through the interceptor chain.CompletableFuture<Object>
EmptyAsyncInterceptorChain. invokeAsync(InvocationContext ctx, VisitableCommand command)
Object
BaseAsyncInterceptor. invokeNext(InvocationContext ctx, VisitableCommand command)
Invoke the next interceptor, possibly with a new command.Object
BaseAsyncInterceptor. invokeNextAndExceptionally(InvocationContext ctx, VisitableCommand command, InvocationExceptionFunction function)
Invoke the next interceptor, possibly with a new command, and execute anInvocationCallback
after all the interceptors have finished with an exception.Object
BaseAsyncInterceptor. invokeNextAndFinally(InvocationContext ctx, VisitableCommand command, InvocationFinallyAction action)
Invoke the next interceptor, possibly with a new command, and execute anInvocationCallback
after all the interceptors have finished, with or without an exception.Object
BaseAsyncInterceptor. invokeNextAndHandle(InvocationContext ctx, VisitableCommand command, InvocationFinallyFunction function)
Invoke the next interceptor, possibly with a new command, and execute anInvocationCallback
after all the interceptors have finished, with or without an exception.Object
BaseAsyncInterceptor. invokeNextThenAccept(InvocationContext ctx, VisitableCommand command, InvocationSuccessAction action)
Invoke the next interceptor, possibly with a new command, and execute anInvocationCallback
after all the interceptors have finished successfully.Object
BaseAsyncInterceptor. invokeNextThenApply(InvocationContext ctx, VisitableCommand command, InvocationSuccessFunction function)
Invoke the next interceptor, possibly with a new command, and execute anInvocationCallback
after all the interceptors have finished successfully.Object
InvocationStage. thenAccept(InvocationContext ctx, VisitableCommand command, InvocationSuccessAction function)
Object
InvocationStage. thenApply(InvocationContext ctx, VisitableCommand command, InvocationSuccessFunction function)
After the current stage completes successfully, invokefunction
and return its result.Object
AsyncInterceptor. visitCommand(InvocationContext ctx, VisitableCommand command)
Perform some work for a command invocation.Object
DDAsyncInterceptor. visitCommand(InvocationContext ctx, VisitableCommand command)
Object
DDAsyncInterceptor. visitUnknownCommand(InvocationContext ctx, VisitableCommand command)
-
Uses of VisitableCommand in org.infinispan.interceptors.base
Methods in org.infinispan.interceptors.base with parameters of type VisitableCommand Modifier and Type Method Description protected abstract void
PrePostProcessingCommandInterceptor. doAfterCall(InvocationContext ctx, VisitableCommand command)
Deprecated.Callback that is invoked after every handleXXX() method defined above.protected boolean
PrePostProcessingCommandInterceptor. doBeforeCall(InvocationContext ctx, VisitableCommand command)
Deprecated.protected Object
CommandInterceptor. handleDefault(InvocationContext ctx, VisitableCommand command)
Deprecated.The default behaviour of the visitXXX methods, which is to ignore the call and pass the call up to the next interceptor in the chain.Object
CommandInterceptor. invokeNextInterceptor(InvocationContext ctx, VisitableCommand command)
Deprecated.Invokes the next interceptor in the chain.Object
CommandInterceptor. visitCommand(InvocationContext ctx, VisitableCommand command)
Deprecated. -
Uses of VisitableCommand in org.infinispan.interceptors.distribution
Methods in org.infinispan.interceptors.distribution with type parameters of type VisitableCommand Modifier and Type Method Description protected <C extends VisitableCommand & FlagAffectedCommand & TopologyAffectedCommand,K>
ObjectTxDistributionInterceptor. handleTxWriteManyCommand(InvocationContext ctx, C command, Collection<K> keys, BiFunction<C,List<K>,C> copyCommand)
Methods in org.infinispan.interceptors.distribution with parameters of type VisitableCommand Modifier and Type Method Description Object
BaseDistributionInterceptor.ReadOnlyManyHelper. apply(InvocationContext rCtx, VisitableCommand rCommand, Object rv)
Object
ScatteredDistributionInterceptor.PrimaryResponseHandler. apply(InvocationContext rCtx, VisitableCommand rCommand, Object rv)
protected void
BiasedScatteredDistributionInterceptor. handleClear(InvocationContext ctx, VisitableCommand command, Object ignored)
protected void
ScatteredDistributionInterceptor. handleClear(InvocationContext ctx, VisitableCommand command, Object ignored)
-
Uses of VisitableCommand in org.infinispan.interceptors.impl
Methods in org.infinispan.interceptors.impl with type parameters of type VisitableCommand Modifier and Type Method Description protected <C extends VisitableCommand & TopologyAffectedCommand & FlagAffectedCommand>
ObjectBaseStateTransferInterceptor. handleReadCommand(InvocationContext ctx, C command)
protected <T extends VisitableCommand>
ObjectBaseStateTransferInterceptor. retryWhenDone(CompletableFuture<Void> future, int topologyId, InvocationContext ctx, T command, InvocationFinallyFunction callback)
Method parameters in org.infinispan.interceptors.impl with type arguments of type VisitableCommand Modifier and Type Method Description static Object
MultiSubCommandInvoker. invokeEach(InvocationContext ctx, Iterator<VisitableCommand> subCommands, BaseAsyncInterceptor interceptor, Object finalReturnValue)
CallBaseAsyncInterceptor.invokeNext(InvocationContext, VisitableCommand)
on a sequence of sub-commands.Constructors in org.infinispan.interceptors.impl with parameters of type VisitableCommand Constructor Description QueueAsyncInvocationStage(InvocationContext ctx, VisitableCommand command, CompletableFuture<?> valueFuture, InvocationCallback function)
-
Uses of VisitableCommand in org.infinispan.interceptors.totalorder
Methods in org.infinispan.interceptors.totalorder with parameters of type VisitableCommand Modifier and Type Method Description protected Object
TotalOrderStateTransferInterceptor. handleDefault(InvocationContext ctx, VisitableCommand command)
-
Uses of VisitableCommand in org.infinispan.interceptors.xsite
Methods in org.infinispan.interceptors.xsite with parameters of type VisitableCommand Modifier and Type Method Description protected Object
BaseBackupInterceptor. processBackupResponse(TxInvocationContext ctx, VisitableCommand command, BackupResponse backupResponse)
-
Uses of VisitableCommand in org.infinispan.partitionhandling.impl
Methods in org.infinispan.partitionhandling.impl with parameters of type VisitableCommand Modifier and Type Method Description protected void
PartitionHandlingInterceptor. postTxCommandCheck(InvocationContext rCtx, VisitableCommand rCommand, Object rv)
-
Uses of VisitableCommand in org.infinispan.statetransfer
Methods in org.infinispan.statetransfer with parameters of type VisitableCommand Modifier and Type Method Description Object
StateTransferInterceptor. handleDefault(InvocationContext ctx, VisitableCommand command)
Object
TransactionSynchronizerInterceptor. visitCommand(InvocationContext ctx, VisitableCommand command)
-
Uses of VisitableCommand in org.infinispan.xsite
Methods in org.infinispan.xsite with parameters of type VisitableCommand Modifier and Type Method Description CompletionStage<Void>
BackupReceiver. handleRemoteCommand(VisitableCommand command, boolean preserveOrder)
CompletionStage<Void>
BaseBackupReceiver. handleRemoteCommand(VisitableCommand command, boolean preserveOrder)
void
BackupSender. processResponses(BackupResponse backupResponse, VisitableCommand command)
Processes the responses of a backup command.void
BackupSender. processResponses(BackupResponse backupResponse, VisitableCommand command, Transaction transaction)
void
BackupSenderImpl. processResponses(BackupResponse backupResponse, VisitableCommand command)
void
BackupSenderImpl. processResponses(BackupResponse backupResponse, VisitableCommand command, Transaction transaction)
Constructors in org.infinispan.xsite with parameters of type VisitableCommand Constructor Description SingleXSiteRpcCommand(ByteString cacheName, VisitableCommand command)
-