Package org.infinispan.commands
Class AbstractVisitor
java.lang.Object
org.infinispan.commands.AbstractVisitor
- All Implemented Interfaces:
- Visitor
An abstract implementation of a Visitor that delegates all visit calls to a default handler which can be overridden.
- Since:
- 4.0
- Author:
- Mircea.Markus@jboss.com, Manik Surtani, Galder Zamarreño
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected ObjecthandleDefault(InvocationContext ctx, VisitableCommand command) A default handler for all commands visited.visitClearCommand(InvocationContext ctx, org.infinispan.commands.write.ClearCommand command) voidvisitCollection(InvocationContext ctx, Collection<? extends VisitableCommand> toVisit) Helper method to visit a collection of VisitableCommands.visitCommitCommand(TxInvocationContext ctx, org.infinispan.commands.tx.CommitCommand command) visitComputeCommand(InvocationContext ctx, org.infinispan.commands.write.ComputeCommand command) visitComputeIfAbsentCommand(InvocationContext ctx, org.infinispan.commands.write.ComputeIfAbsentCommand command) visitEntrySetCommand(InvocationContext ctx, org.infinispan.commands.read.EntrySetCommand command) visitEvictCommand(InvocationContext ctx, org.infinispan.commands.write.EvictCommand command) visitGetAllCommand(InvocationContext ctx, org.infinispan.commands.read.GetAllCommand command) visitGetCacheEntryCommand(InvocationContext ctx, org.infinispan.commands.read.GetCacheEntryCommand command) visitGetKeyValueCommand(InvocationContext ctx, org.infinispan.commands.read.GetKeyValueCommand command) visitInvalidateCommand(InvocationContext ctx, org.infinispan.commands.write.InvalidateCommand invalidateCommand) visitInvalidateL1Command(InvocationContext ctx, org.infinispan.commands.write.InvalidateL1Command invalidateL1Command) visitIracPutKeyValueCommand(InvocationContext ctx, org.infinispan.commands.write.IracPutKeyValueCommand command) visitKeySetCommand(InvocationContext ctx, org.infinispan.commands.read.KeySetCommand command) visitLockControlCommand(TxInvocationContext ctx, org.infinispan.commands.control.LockControlCommand command) visitPrepareCommand(TxInvocationContext ctx, org.infinispan.commands.tx.PrepareCommand command) visitPutKeyValueCommand(InvocationContext ctx, org.infinispan.commands.write.PutKeyValueCommand command) visitPutMapCommand(InvocationContext ctx, org.infinispan.commands.write.PutMapCommand command) visitReadOnlyKeyCommand(InvocationContext ctx, org.infinispan.commands.functional.ReadOnlyKeyCommand command) visitReadOnlyManyCommand(InvocationContext ctx, org.infinispan.commands.functional.ReadOnlyManyCommand command) visitReadWriteKeyCommand(InvocationContext ctx, org.infinispan.commands.functional.ReadWriteKeyCommand command) visitReadWriteKeyValueCommand(InvocationContext ctx, org.infinispan.commands.functional.ReadWriteKeyValueCommand command) visitReadWriteManyCommand(InvocationContext ctx, org.infinispan.commands.functional.ReadWriteManyCommand command) visitReadWriteManyEntriesCommand(InvocationContext ctx, org.infinispan.commands.functional.ReadWriteManyEntriesCommand command) visitRemoveCommand(InvocationContext ctx, org.infinispan.commands.write.RemoveCommand command) visitReplaceCommand(InvocationContext ctx, org.infinispan.commands.write.ReplaceCommand command) visitRollbackCommand(TxInvocationContext ctx, org.infinispan.commands.tx.RollbackCommand command) visitSizeCommand(InvocationContext ctx, org.infinispan.commands.read.SizeCommand command) visitTouchCommand(InvocationContext ctx, TouchCommand command) visitUnknownCommand(InvocationContext ctx, VisitableCommand command) visitWriteOnlyKeyCommand(InvocationContext ctx, org.infinispan.commands.functional.WriteOnlyKeyCommand command) visitWriteOnlyKeyValueCommand(InvocationContext ctx, org.infinispan.commands.functional.WriteOnlyKeyValueCommand command) visitWriteOnlyManyCommand(InvocationContext ctx, org.infinispan.commands.functional.WriteOnlyManyCommand command) visitWriteOnlyManyEntriesCommand(InvocationContext ctx, org.infinispan.commands.functional.WriteOnlyManyEntriesCommand command) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.commands.VisitorvisitRemoveExpiredCommand
- 
Constructor Details- 
AbstractVisitorpublic AbstractVisitor()
 
- 
- 
Method Details- 
visitPutKeyValueCommandpublic Object visitPutKeyValueCommand(InvocationContext ctx, org.infinispan.commands.write.PutKeyValueCommand command) throws Throwable - Specified by:
- visitPutKeyValueCommandin interface- Visitor
- Throws:
- Throwable
 
- 
visitRemoveCommandpublic Object visitRemoveCommand(InvocationContext ctx, org.infinispan.commands.write.RemoveCommand command) throws Throwable - Specified by:
- visitRemoveCommandin interface- Visitor
- Throws:
- Throwable
 
- 
visitReplaceCommandpublic Object visitReplaceCommand(InvocationContext ctx, org.infinispan.commands.write.ReplaceCommand command) throws Throwable - Specified by:
- visitReplaceCommandin interface- Visitor
- Throws:
- Throwable
 
- 
visitComputeCommandpublic Object visitComputeCommand(InvocationContext ctx, org.infinispan.commands.write.ComputeCommand command) throws Throwable - Specified by:
- visitComputeCommandin interface- Visitor
- Throws:
- Throwable
 
- 
visitComputeIfAbsentCommandpublic Object visitComputeIfAbsentCommand(InvocationContext ctx, org.infinispan.commands.write.ComputeIfAbsentCommand command) throws Throwable - Specified by:
- visitComputeIfAbsentCommandin interface- Visitor
- Throws:
- Throwable
 
- 
visitClearCommandpublic Object visitClearCommand(InvocationContext ctx, org.infinispan.commands.write.ClearCommand command) throws Throwable - Specified by:
- visitClearCommandin interface- Visitor
- Throws:
- Throwable
 
- 
visitPutMapCommandpublic Object visitPutMapCommand(InvocationContext ctx, org.infinispan.commands.write.PutMapCommand command) throws Throwable - Specified by:
- visitPutMapCommandin interface- Visitor
- Throws:
- Throwable
 
- 
visitEvictCommandpublic Object visitEvictCommand(InvocationContext ctx, org.infinispan.commands.write.EvictCommand command) throws Throwable - Specified by:
- visitEvictCommandin interface- Visitor
- Throws:
- Throwable
 
- 
visitIracPutKeyValueCommandpublic Object visitIracPutKeyValueCommand(InvocationContext ctx, org.infinispan.commands.write.IracPutKeyValueCommand command) throws Throwable - Specified by:
- visitIracPutKeyValueCommandin interface- Visitor
- Throws:
- Throwable
 
- 
visitSizeCommandpublic Object visitSizeCommand(InvocationContext ctx, org.infinispan.commands.read.SizeCommand command) throws Throwable - Specified by:
- visitSizeCommandin interface- Visitor
- Throws:
- Throwable
 
- 
visitGetKeyValueCommandpublic Object visitGetKeyValueCommand(InvocationContext ctx, org.infinispan.commands.read.GetKeyValueCommand command) throws Throwable - Specified by:
- visitGetKeyValueCommandin interface- Visitor
- Throws:
- Throwable
 
- 
visitGetCacheEntryCommandpublic Object visitGetCacheEntryCommand(InvocationContext ctx, org.infinispan.commands.read.GetCacheEntryCommand command) throws Throwable - Specified by:
- visitGetCacheEntryCommandin interface- Visitor
- Throws:
- Throwable
 
- 
visitGetAllCommandpublic Object visitGetAllCommand(InvocationContext ctx, org.infinispan.commands.read.GetAllCommand command) throws Throwable - Specified by:
- visitGetAllCommandin interface- Visitor
- Throws:
- Throwable
 
- 
visitKeySetCommandpublic Object visitKeySetCommand(InvocationContext ctx, org.infinispan.commands.read.KeySetCommand command) throws Throwable - Specified by:
- visitKeySetCommandin interface- Visitor
- Throws:
- Throwable
 
- 
visitEntrySetCommandpublic Object visitEntrySetCommand(InvocationContext ctx, org.infinispan.commands.read.EntrySetCommand command) throws Throwable - Specified by:
- visitEntrySetCommandin interface- Visitor
- Throws:
- Throwable
 
- 
visitPrepareCommandpublic Object visitPrepareCommand(TxInvocationContext ctx, org.infinispan.commands.tx.PrepareCommand command) throws Throwable - Specified by:
- visitPrepareCommandin interface- Visitor
- Throws:
- Throwable
 
- 
visitRollbackCommandpublic Object visitRollbackCommand(TxInvocationContext ctx, org.infinispan.commands.tx.RollbackCommand command) throws Throwable - Specified by:
- visitRollbackCommandin interface- Visitor
- Throws:
- Throwable
 
- 
visitCommitCommandpublic Object visitCommitCommand(TxInvocationContext ctx, org.infinispan.commands.tx.CommitCommand command) throws Throwable - Specified by:
- visitCommitCommandin interface- Visitor
- Throws:
- Throwable
 
- 
visitInvalidateCommandpublic Object visitInvalidateCommand(InvocationContext ctx, org.infinispan.commands.write.InvalidateCommand invalidateCommand) throws Throwable - Specified by:
- visitInvalidateCommandin interface- Visitor
- Throws:
- Throwable
 
- 
visitInvalidateL1Commandpublic Object visitInvalidateL1Command(InvocationContext ctx, org.infinispan.commands.write.InvalidateL1Command invalidateL1Command) throws Throwable - Specified by:
- visitInvalidateL1Commandin interface- Visitor
- Throws:
- Throwable
 
- 
handleDefaultA default handler for all commands visited. This is called for any visit method called, unless a visit command is appropriately overridden.- Parameters:
- ctx- invocation context
- command- command to handle
- Returns:
- return value
- Throws:
- Throwable- in the case of a problem
 
- 
visitCollectionpublic void visitCollection(InvocationContext ctx, Collection<? extends VisitableCommand> toVisit) throws Throwable Helper method to visit a collection of VisitableCommands.- Parameters:
- ctx- Invocation context
- toVisit- collection of commands to visit
- Throws:
- Throwable- in the event of problems
 
- 
visitLockControlCommandpublic Object visitLockControlCommand(TxInvocationContext ctx, org.infinispan.commands.control.LockControlCommand command) throws Throwable - Specified by:
- visitLockControlCommandin interface- Visitor
- Throws:
- Throwable
 
- 
visitUnknownCommand- Specified by:
- visitUnknownCommandin interface- Visitor
- Throws:
- Throwable
 
- 
visitReadOnlyKeyCommandpublic Object visitReadOnlyKeyCommand(InvocationContext ctx, org.infinispan.commands.functional.ReadOnlyKeyCommand command) throws Throwable - Specified by:
- visitReadOnlyKeyCommandin interface- Visitor
- Throws:
- Throwable
 
- 
visitReadOnlyManyCommandpublic Object visitReadOnlyManyCommand(InvocationContext ctx, org.infinispan.commands.functional.ReadOnlyManyCommand command) throws Throwable - Specified by:
- visitReadOnlyManyCommandin interface- Visitor
- Throws:
- Throwable
 
- 
visitWriteOnlyKeyCommandpublic Object visitWriteOnlyKeyCommand(InvocationContext ctx, org.infinispan.commands.functional.WriteOnlyKeyCommand command) throws Throwable - Specified by:
- visitWriteOnlyKeyCommandin interface- Visitor
- Throws:
- Throwable
 
- 
visitReadWriteKeyValueCommandpublic Object visitReadWriteKeyValueCommand(InvocationContext ctx, org.infinispan.commands.functional.ReadWriteKeyValueCommand command) throws Throwable - Specified by:
- visitReadWriteKeyValueCommandin interface- Visitor
- Throws:
- Throwable
 
- 
visitReadWriteKeyCommandpublic Object visitReadWriteKeyCommand(InvocationContext ctx, org.infinispan.commands.functional.ReadWriteKeyCommand command) throws Throwable - Specified by:
- visitReadWriteKeyCommandin interface- Visitor
- Throws:
- Throwable
 
- 
visitWriteOnlyManyEntriesCommandpublic Object visitWriteOnlyManyEntriesCommand(InvocationContext ctx, org.infinispan.commands.functional.WriteOnlyManyEntriesCommand command) throws Throwable - Specified by:
- visitWriteOnlyManyEntriesCommandin interface- Visitor
- Throws:
- Throwable
 
- 
visitWriteOnlyKeyValueCommandpublic Object visitWriteOnlyKeyValueCommand(InvocationContext ctx, org.infinispan.commands.functional.WriteOnlyKeyValueCommand command) throws Throwable - Specified by:
- visitWriteOnlyKeyValueCommandin interface- Visitor
- Throws:
- Throwable
 
- 
visitWriteOnlyManyCommandpublic Object visitWriteOnlyManyCommand(InvocationContext ctx, org.infinispan.commands.functional.WriteOnlyManyCommand command) throws Throwable - Specified by:
- visitWriteOnlyManyCommandin interface- Visitor
- Throws:
- Throwable
 
- 
visitReadWriteManyCommandpublic Object visitReadWriteManyCommand(InvocationContext ctx, org.infinispan.commands.functional.ReadWriteManyCommand command) throws Throwable - Specified by:
- visitReadWriteManyCommandin interface- Visitor
- Throws:
- Throwable
 
- 
visitReadWriteManyEntriesCommandpublic Object visitReadWriteManyEntriesCommand(InvocationContext ctx, org.infinispan.commands.functional.ReadWriteManyEntriesCommand command) throws Throwable - Specified by:
- visitReadWriteManyEntriesCommandin interface- Visitor
- Throws:
- Throwable
 
- 
visitTouchCommand- Specified by:
- visitTouchCommandin interface- Visitor
- Throws:
- Throwable
 
 
-