Uses of Interface
org.infinispan.commands.VisitableCommand
Packages that use VisitableCommand
Package
Description
Commands that operate on the cache, either locally or remotely.
Meta-commands that wrap other commands for remote execution.
Commands that represent transactional lifecycle transitions.
Commands that alter the state of the cache.
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.
Interceptors dealing with command replication in distributed/replicated mode.
Basic interceptors
Interceptors dealing with locking.
Transfer of state to new caches in a cluster.
This is the private xsite package.
-
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 TypeMethodDescriptionCommandsFactory.buildSingleRpcCommand(VisitableCommand command) Builds a SingleRpcCommand "envelope" containing a single ReplicableCommandCommandsFactoryImpl.buildSingleRpcCommand(VisitableCommand call) CommandsFactory.buildSingleXSiteRpcCommand(VisitableCommand command) Builds SingleRpcCommand used to performVisitableCommandon the backup site,CommandsFactoryImpl.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.control
Classes in org.infinispan.commands.control that implement VisitableCommandModifier and TypeClassDescriptionclassLockControlCommand is a command that enables distributed locking across infinispan nodes. -
Uses of VisitableCommand in org.infinispan.commands.functional
Classes in org.infinispan.commands.functional that implement VisitableCommandModifier and TypeClassDescriptionclassclassclassReadOnlyKeyCommand<K,V, R> classReadOnlyManyCommand<K,V, R> final classReadWriteKeyCommand<K,V, R> final classReadWriteKeyValueCommand<K,V, T, R> final classReadWriteManyCommand<K,V, R> final classReadWriteManyEntriesCommand<K,V, T, R> classTxReadOnlyKeyCommand<K,V, R> classTxReadOnlyManyCommand<K,V, R> final classWriteOnlyKeyCommand<K,V> final classWriteOnlyKeyValueCommand<K,V, T> final classWriteOnlyManyCommand<K,V> final classWriteOnlyManyEntriesCommand<K,V, T> -
Uses of VisitableCommand in org.infinispan.commands.read
Classes in org.infinispan.commands.read that implement VisitableCommandModifier and TypeClassDescriptionclassclassAbstract classclassEntrySetCommand<K,V> Command implementation forMap.entrySet()functionality.classRetrieves multiple entries at once.final classUsed to fetch a full CacheEntry rather than just the value.classImplements functionality defined byMap.get(Object)andMap.containsKey(Object)operationsclassKeySetCommand<K,V> Command implementation forMap.keySet()functionality.classCommand to calculate the size of the cache -
Uses of VisitableCommand in org.infinispan.commands.remote
Constructors in org.infinispan.commands.remote with parameters of type VisitableCommand -
Uses of VisitableCommand in org.infinispan.commands.tx
Subinterfaces of VisitableCommand in org.infinispan.commands.txModifier and TypeInterfaceDescriptioninterfaceAn transaction boundary command that allows the retrieval of an attachedGlobalTransactionClasses in org.infinispan.commands.tx that implement VisitableCommandModifier and TypeClassDescriptionclassAn abstract transaction boundary command that holds a reference to aGlobalTransactionclassCommand corresponding to the 2nd phase of 2PC.classCommand corresponding to the 1st phase of 2PC.classCommand corresponding to a transaction rollback.classThe same as aCommitCommandexcept that version information is also carried by this command, used by optimistically transactional caches making use of write skew checking when usingIsolationLevel.REPEATABLE_READ.classSame asPrepareCommandexcept that the transaction originator makes evident the versions of entries touched and stored in a transaction context so that accurate write skew checks may be performed by the lock owner(s). -
Uses of VisitableCommand in org.infinispan.commands.write
Subinterfaces of VisitableCommand in org.infinispan.commands.writeModifier and TypeInterfaceDescriptioninterfaceMixes features from DataCommand and WriteCommandinterfaceA command that modifies the cache in some wayClasses in org.infinispan.commands.write that implement VisitableCommandModifier and TypeClassDescriptionclassStuff common to WriteCommandsclassclassclassclassclassRemoves an entry from memory.classInvalidates an entry in a L1 cache (used with DIST mode)classAWriteCommandused to handle updates from the remote site (for asynchronous cross-site replication).classImplements functionality defined byBasicCache.put(Object, Object)classA command writing multiple key/value pairs with the same metadata.classclassRemoves an entry that is expired from memoryclass -
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.interceptors.distribution
Classes in org.infinispan.interceptors.distribution with type parameters of type VisitableCommandModifier and TypeInterfaceDescriptionprotected static interfaceMethods in org.infinispan.interceptors.distribution with type parameters of type VisitableCommandModifier and TypeMethodDescriptionprotected <C extends VisitableCommand & FlagAffectedCommand & TopologyAffectedCommand,K>
ObjectTxDistributionInterceptor.handleTxWriteManyCommand(InvocationContext ctx, C command, Collection<K> keys, BiFunction<C, List<K>, C> copyCommand) -
Uses of VisitableCommand in org.infinispan.interceptors.impl
Methods in org.infinispan.interceptors.impl with type parameters of type VisitableCommandModifier and TypeMethodDescription<C extends VisitableCommand>
ObjectSimpleAsyncInvocationStage.addCallback(InvocationContext ctx, C command, InvocationCallback<C> function) protected <C extends VisitableCommand & TopologyAffectedCommand & FlagAffectedCommand>
ObjectBaseStateTransferInterceptor.handleReadCommand(InvocationContext ctx, C command) protected <T extends VisitableCommand>
ObjectBaseStateTransferInterceptor.retryWhenDone(CompletionStage<Void> stage, int topologyId, InvocationContext ctx, T command, InvocationFinallyFunction<T> callback) Methods in org.infinispan.interceptors.impl with parameters of type VisitableCommandModifier and TypeMethodDescriptionQueueAsyncInvocationStage.addCallback(InvocationContext ctx, VisitableCommand command, InvocationCallback function) MultiSubCommandInvoker.apply(InvocationContext rCtx, VisitableCommand rCommand, Object rv) QueueAsyncInvocationStage.apply(InvocationContext rCtx, VisitableCommand rCommand, Object rv, Throwable throwable) BatchingInterceptor.handleDefault(InvocationContext ctx, VisitableCommand command) Simply check if there is an ongoing tx.AsyncInterceptorChainImpl.invoke(InvocationContext ctx, VisitableCommand command) AsyncInterceptorChainImpl.invokeAsync(InvocationContext ctx, VisitableCommand command) AsyncInterceptorChainImpl.invokeStage(InvocationContext ctx, VisitableCommand command) SimpleAsyncInvocationStage.thenReturn(InvocationContext ctx, VisitableCommand command, Object returnValue) CallInterceptor.visitCommand(InvocationContext ctx, VisitableCommand command) InvocationContextInterceptor.visitCommand(InvocationContext ctx, VisitableCommand command) CallInterceptor.visitUnknownCommand(InvocationContext ctx, VisitableCommand command) Method parameters in org.infinispan.interceptors.impl with type arguments of type VisitableCommandModifier and TypeMethodDescriptionstatic ObjectMultiSubCommandInvoker.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 VisitableCommandModifierConstructorDescriptionQueueAsyncInvocationStage(InvocationContext ctx, VisitableCommand command, CompletableFuture<?> valueFuture, InvocationCallback function) -
Uses of VisitableCommand in org.infinispan.interceptors.locking
Methods in org.infinispan.interceptors.locking with parameters of type VisitableCommandModifier and TypeMethodDescriptionprotected final InvocationStageAbstractLockingInterceptor.lockAndRecord(InvocationContext context, VisitableCommand command, Object key, long timeout) -
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) -
Uses of VisitableCommand in org.infinispan.statetransfer
Methods in org.infinispan.statetransfer with parameters of type VisitableCommandModifier and TypeMethodDescriptionStateTransferInterceptor.handleDefault(InvocationContext ctx, VisitableCommand command) TransactionSynchronizerInterceptor.visitCommand(InvocationContext ctx, VisitableCommand command) -
Uses of VisitableCommand in org.infinispan.xsite
Methods in org.infinispan.xsite with parameters of type VisitableCommandModifier and TypeMethodDescription<O> CompletionStage<O> BackupReceiver.handleRemoteCommand(VisitableCommand command) final <O> CompletionStage<O> ClusteredCacheBackupReceiver.handleRemoteCommand(VisitableCommand command) Constructors in org.infinispan.xsite with parameters of type VisitableCommandModifierConstructorDescriptionSingleXSiteRpcCommand(ByteString cacheName, VisitableCommand command)