Interface VisitableCommand
- All Superinterfaces:
org.infinispan.commands.remote.CacheRpcCommand
,ReplicableCommand
,TracedCommand
,VersionAware
- All Known Subinterfaces:
DataCommand
,FlagAffectedCommand
- All Known Implementing Classes:
org.infinispan.commands.read.AbstractDataCommand
,AbstractFlagAffectedCommand
,AbstractTopologyAffectedCommand
,TouchCommand
public interface VisitableCommand
extends org.infinispan.commands.remote.CacheRpcCommand
A type of command that can accept
Visitor
s, such as DDAsyncInterceptor
.- Since:
- 4.0
- Author:
- Manik Surtani (manik@jboss.org)
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionacceptVisitor
(InvocationContext ctx, Visitor visitor) Accept a visitor, and return the result of accepting this visitor.default void
init
(ComponentRegistry registry) default CompletionStage
<?> invokeAsync
(ComponentRegistry registry) loadType()
Methods inherited from interface org.infinispan.commands.ReplicableCommand
getCommandId, isReturnValueExpected, isSuccessful, logThrowable, readFrom, supportedSince, writeTo
Methods inherited from interface org.infinispan.commands.TracedCommand
getOperationName, getSpanAttributes, setSpanAttributes
-
Field Details
-
log
static final org.infinispan.util.logging.Log log
-
-
Method Details
-
init
-
invokeAsync
- Throws:
Throwable
-
acceptVisitor
Accept a visitor, and return the result of accepting this visitor.- Parameters:
ctx
- invocation contextvisitor
- visitor to accept- Returns:
- arbitrary return value
- Throws:
Throwable
- in the event of problems
-
loadType
VisitableCommand.LoadType loadType()- Returns:
- Nodes on which the command needs to read the previous values of the keys it acts on.
- Throws:
UnsupportedOperationException
- if the distinction does not make any sense.
-