Package org.infinispan.commands
Interface VisitableCommand
-
- All Superinterfaces:
ReplicableCommand
- All Known Subinterfaces:
DataCommand
,DataWriteCommand
,FlagAffectedCommand
,TransactionBoundaryCommand
,WriteCommand
- All Known Implementing Classes:
AbstractDataCommand
,AbstractDataWriteCommand
,AbstractFlagAffectedCommand
,AbstractLocalCommand
,AbstractTopologyAffectedCommand
,AbstractTransactionBoundaryCommand
,AbstractWriteKeyCommand
,AbstractWriteManyCommand
,ClearCommand
,CommitCommand
,ComputeCommand
,ComputeIfAbsentCommand
,EntrySetCommand
,EvictCommand
,GetAllCommand
,GetCacheEntryCommand
,GetKeysInGroupCommand
,GetKeyValueCommand
,InvalidateCommand
,InvalidateL1Command
,IracPutKeyValueCommand
,KeySetCommand
,LockControlCommand
,PrepareCommand
,PutKeyValueCommand
,PutMapCommand
,ReadOnlyKeyCommand
,ReadOnlyManyCommand
,ReadWriteKeyCommand
,ReadWriteKeyValueCommand
,ReadWriteManyCommand
,ReadWriteManyEntriesCommand
,RemoveCommand
,RemoveExpiredCommand
,ReplaceCommand
,RollbackCommand
,SizeCommand
,TouchCommand
,TxReadOnlyKeyCommand
,TxReadOnlyManyCommand
,VersionedCommitCommand
,VersionedPrepareCommand
,WriteOnlyKeyCommand
,WriteOnlyKeyValueCommand
,WriteOnlyManyCommand
,WriteOnlyManyEntriesCommand
public interface VisitableCommand extends ReplicableCommand
A type of command that can acceptVisitor
s, such asDDAsyncInterceptor
.- Since:
- 4.0
- Author:
- Manik Surtani ([email protected])
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
VisitableCommand.LoadType
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Object
acceptVisitor(InvocationContext ctx, Visitor visitor)
Accept a visitor, and return the result of accepting this visitor.default void
init(ComponentRegistry registry)
VisitableCommand.LoadType
loadType()
-
Methods inherited from interface org.infinispan.commands.ReplicableCommand
canBlock, getCommandId, invoke, invokeAsync, isReturnValueExpected, isSuccessful, logThrowable, readFrom, setOrigin, writeTo
-
-
-
-
Method Detail
-
init
default void init(ComponentRegistry registry)
-
acceptVisitor
Object acceptVisitor(InvocationContext ctx, Visitor visitor) throws Throwable
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.
-
-