Package org.infinispan.interceptors
Class DDAsyncInterceptor
- java.lang.Object
-
- org.infinispan.interceptors.BaseAsyncInterceptor
-
- org.infinispan.interceptors.DDAsyncInterceptor
-
- All Implemented Interfaces:
org.infinispan.commands.Visitor
,AsyncInterceptor
- Direct Known Subclasses:
AbstractLockingInterceptor
,BaseBackupInterceptor
,BaseCustomAsyncInterceptor
,org.infinispan.interceptors.impl.BaseRpcInterceptor
,org.infinispan.interceptors.impl.BaseStateTransferInterceptor
,DistributionBulkInterceptor
,org.infinispan.interceptors.impl.EntryWrappingInterceptor
,TotalOrderInterceptor
public abstract class DDAsyncInterceptor extends BaseAsyncInterceptor implements org.infinispan.commands.Visitor
Interface for async interceptors using double-dispatch.- Since:
- 9.0
- Author:
- Dan Berindei
-
-
Field Summary
-
Fields inherited from class org.infinispan.interceptors.BaseAsyncInterceptor
cacheConfiguration
-
-
Constructor Summary
Constructors Constructor Description DDAsyncInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Object
handleDefault(InvocationContext ctx, org.infinispan.commands.VisitableCommand command)
java.lang.Object
visitClearCommand(InvocationContext ctx, org.infinispan.commands.write.ClearCommand command)
java.lang.Object
visitCommand(InvocationContext ctx, org.infinispan.commands.VisitableCommand command)
Perform some work for a command invocation.java.lang.Object
visitCommitCommand(org.infinispan.context.impl.TxInvocationContext ctx, org.infinispan.commands.tx.CommitCommand command)
java.lang.Object
visitComputeCommand(InvocationContext ctx, org.infinispan.commands.write.ComputeCommand command)
java.lang.Object
visitComputeIfAbsentCommand(InvocationContext ctx, org.infinispan.commands.write.ComputeIfAbsentCommand command)
java.lang.Object
visitEntrySetCommand(InvocationContext ctx, org.infinispan.commands.read.EntrySetCommand command)
java.lang.Object
visitEvictCommand(InvocationContext ctx, org.infinispan.commands.write.EvictCommand command)
java.lang.Object
visitGetAllCommand(InvocationContext ctx, org.infinispan.commands.read.GetAllCommand command)
java.lang.Object
visitGetCacheEntryCommand(InvocationContext ctx, org.infinispan.commands.read.GetCacheEntryCommand command)
java.lang.Object
visitGetKeysInGroupCommand(InvocationContext ctx, org.infinispan.commands.remote.GetKeysInGroupCommand command)
java.lang.Object
visitGetKeyValueCommand(InvocationContext ctx, org.infinispan.commands.read.GetKeyValueCommand command)
java.lang.Object
visitInvalidateCommand(InvocationContext ctx, org.infinispan.commands.write.InvalidateCommand command)
java.lang.Object
visitInvalidateL1Command(InvocationContext ctx, org.infinispan.commands.write.InvalidateL1Command command)
java.lang.Object
visitKeySetCommand(InvocationContext ctx, org.infinispan.commands.read.KeySetCommand command)
java.lang.Object
visitLockControlCommand(org.infinispan.context.impl.TxInvocationContext ctx, org.infinispan.commands.control.LockControlCommand command)
java.lang.Object
visitPrepareCommand(org.infinispan.context.impl.TxInvocationContext ctx, org.infinispan.commands.tx.PrepareCommand command)
java.lang.Object
visitPutKeyValueCommand(InvocationContext ctx, org.infinispan.commands.write.PutKeyValueCommand command)
java.lang.Object
visitPutMapCommand(InvocationContext ctx, org.infinispan.commands.write.PutMapCommand command)
java.lang.Object
visitReadOnlyKeyCommand(InvocationContext ctx, org.infinispan.commands.functional.ReadOnlyKeyCommand command)
java.lang.Object
visitReadOnlyManyCommand(InvocationContext ctx, org.infinispan.commands.functional.ReadOnlyManyCommand command)
java.lang.Object
visitReadWriteKeyCommand(InvocationContext ctx, org.infinispan.commands.functional.ReadWriteKeyCommand command)
java.lang.Object
visitReadWriteKeyValueCommand(InvocationContext ctx, org.infinispan.commands.functional.ReadWriteKeyValueCommand command)
java.lang.Object
visitReadWriteManyCommand(InvocationContext ctx, org.infinispan.commands.functional.ReadWriteManyCommand command)
java.lang.Object
visitReadWriteManyEntriesCommand(InvocationContext ctx, org.infinispan.commands.functional.ReadWriteManyEntriesCommand command)
java.lang.Object
visitRemoveCommand(InvocationContext ctx, org.infinispan.commands.write.RemoveCommand command)
java.lang.Object
visitReplaceCommand(InvocationContext ctx, org.infinispan.commands.write.ReplaceCommand command)
java.lang.Object
visitRollbackCommand(org.infinispan.context.impl.TxInvocationContext ctx, org.infinispan.commands.tx.RollbackCommand command)
java.lang.Object
visitSizeCommand(InvocationContext ctx, org.infinispan.commands.read.SizeCommand command)
java.lang.Object
visitUnknownCommand(InvocationContext ctx, org.infinispan.commands.VisitableCommand command)
java.lang.Object
visitWriteOnlyKeyCommand(InvocationContext ctx, org.infinispan.commands.functional.WriteOnlyKeyCommand command)
java.lang.Object
visitWriteOnlyKeyValueCommand(InvocationContext ctx, org.infinispan.commands.functional.WriteOnlyKeyValueCommand command)
java.lang.Object
visitWriteOnlyManyCommand(InvocationContext ctx, org.infinispan.commands.functional.WriteOnlyManyCommand command)
java.lang.Object
visitWriteOnlyManyEntriesCommand(InvocationContext ctx, org.infinispan.commands.functional.WriteOnlyManyEntriesCommand command)
-
Methods inherited from class org.infinispan.interceptors.BaseAsyncInterceptor
asyncInvokeNext, asyncInvokeNext, asyncInvokeNext, asyncValue, delayedNull, delayedValue, delayedValue, invokeNext, invokeNextAndExceptionally, invokeNextAndFinally, invokeNextAndHandle, invokeNextThenAccept, invokeNextThenApply, isSuccessfullyDone, makeStage, setNextInterceptor, valueOrException
-
-
-
-
Method Detail
-
visitCommand
public final java.lang.Object visitCommand(InvocationContext ctx, org.infinispan.commands.VisitableCommand command) throws java.lang.Throwable
Description copied from interface:AsyncInterceptor
Perform some work for a command invocation. The interceptor is responsible for invoking the next interceptor in the chain, usingBaseAsyncInterceptor.invokeNext(InvocationContext, VisitableCommand)
or the other methods inBaseAsyncInterceptor
.- Specified by:
visitCommand
in interfaceAsyncInterceptor
- Returns:
- Either a regular value, or an
InvocationStage
created by theBaseAsyncInterceptor
methods. - Throws:
java.lang.Throwable
-
handleDefault
protected java.lang.Object handleDefault(InvocationContext ctx, org.infinispan.commands.VisitableCommand command) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
visitPutKeyValueCommand
public java.lang.Object visitPutKeyValueCommand(InvocationContext ctx, org.infinispan.commands.write.PutKeyValueCommand command) throws java.lang.Throwable
- Specified by:
visitPutKeyValueCommand
in interfaceorg.infinispan.commands.Visitor
- Throws:
java.lang.Throwable
-
visitRemoveCommand
public java.lang.Object visitRemoveCommand(InvocationContext ctx, org.infinispan.commands.write.RemoveCommand command) throws java.lang.Throwable
- Specified by:
visitRemoveCommand
in interfaceorg.infinispan.commands.Visitor
- Throws:
java.lang.Throwable
-
visitReplaceCommand
public java.lang.Object visitReplaceCommand(InvocationContext ctx, org.infinispan.commands.write.ReplaceCommand command) throws java.lang.Throwable
- Specified by:
visitReplaceCommand
in interfaceorg.infinispan.commands.Visitor
- Throws:
java.lang.Throwable
-
visitComputeIfAbsentCommand
public java.lang.Object visitComputeIfAbsentCommand(InvocationContext ctx, org.infinispan.commands.write.ComputeIfAbsentCommand command) throws java.lang.Throwable
- Specified by:
visitComputeIfAbsentCommand
in interfaceorg.infinispan.commands.Visitor
- Throws:
java.lang.Throwable
-
visitComputeCommand
public java.lang.Object visitComputeCommand(InvocationContext ctx, org.infinispan.commands.write.ComputeCommand command) throws java.lang.Throwable
- Specified by:
visitComputeCommand
in interfaceorg.infinispan.commands.Visitor
- Throws:
java.lang.Throwable
-
visitClearCommand
public java.lang.Object visitClearCommand(InvocationContext ctx, org.infinispan.commands.write.ClearCommand command) throws java.lang.Throwable
- Specified by:
visitClearCommand
in interfaceorg.infinispan.commands.Visitor
- Throws:
java.lang.Throwable
-
visitPutMapCommand
public java.lang.Object visitPutMapCommand(InvocationContext ctx, org.infinispan.commands.write.PutMapCommand command) throws java.lang.Throwable
- Specified by:
visitPutMapCommand
in interfaceorg.infinispan.commands.Visitor
- Throws:
java.lang.Throwable
-
visitEvictCommand
public java.lang.Object visitEvictCommand(InvocationContext ctx, org.infinispan.commands.write.EvictCommand command) throws java.lang.Throwable
- Specified by:
visitEvictCommand
in interfaceorg.infinispan.commands.Visitor
- Throws:
java.lang.Throwable
-
visitSizeCommand
public java.lang.Object visitSizeCommand(InvocationContext ctx, org.infinispan.commands.read.SizeCommand command) throws java.lang.Throwable
- Specified by:
visitSizeCommand
in interfaceorg.infinispan.commands.Visitor
- Throws:
java.lang.Throwable
-
visitGetKeyValueCommand
public java.lang.Object visitGetKeyValueCommand(InvocationContext ctx, org.infinispan.commands.read.GetKeyValueCommand command) throws java.lang.Throwable
- Specified by:
visitGetKeyValueCommand
in interfaceorg.infinispan.commands.Visitor
- Throws:
java.lang.Throwable
-
visitGetCacheEntryCommand
public java.lang.Object visitGetCacheEntryCommand(InvocationContext ctx, org.infinispan.commands.read.GetCacheEntryCommand command) throws java.lang.Throwable
- Specified by:
visitGetCacheEntryCommand
in interfaceorg.infinispan.commands.Visitor
- Throws:
java.lang.Throwable
-
visitGetAllCommand
public java.lang.Object visitGetAllCommand(InvocationContext ctx, org.infinispan.commands.read.GetAllCommand command) throws java.lang.Throwable
- Specified by:
visitGetAllCommand
in interfaceorg.infinispan.commands.Visitor
- Throws:
java.lang.Throwable
-
visitKeySetCommand
public java.lang.Object visitKeySetCommand(InvocationContext ctx, org.infinispan.commands.read.KeySetCommand command) throws java.lang.Throwable
- Specified by:
visitKeySetCommand
in interfaceorg.infinispan.commands.Visitor
- Throws:
java.lang.Throwable
-
visitEntrySetCommand
public java.lang.Object visitEntrySetCommand(InvocationContext ctx, org.infinispan.commands.read.EntrySetCommand command) throws java.lang.Throwable
- Specified by:
visitEntrySetCommand
in interfaceorg.infinispan.commands.Visitor
- Throws:
java.lang.Throwable
-
visitPrepareCommand
public java.lang.Object visitPrepareCommand(org.infinispan.context.impl.TxInvocationContext ctx, org.infinispan.commands.tx.PrepareCommand command) throws java.lang.Throwable
- Specified by:
visitPrepareCommand
in interfaceorg.infinispan.commands.Visitor
- Throws:
java.lang.Throwable
-
visitRollbackCommand
public java.lang.Object visitRollbackCommand(org.infinispan.context.impl.TxInvocationContext ctx, org.infinispan.commands.tx.RollbackCommand command) throws java.lang.Throwable
- Specified by:
visitRollbackCommand
in interfaceorg.infinispan.commands.Visitor
- Throws:
java.lang.Throwable
-
visitCommitCommand
public java.lang.Object visitCommitCommand(org.infinispan.context.impl.TxInvocationContext ctx, org.infinispan.commands.tx.CommitCommand command) throws java.lang.Throwable
- Specified by:
visitCommitCommand
in interfaceorg.infinispan.commands.Visitor
- Throws:
java.lang.Throwable
-
visitInvalidateCommand
public java.lang.Object visitInvalidateCommand(InvocationContext ctx, org.infinispan.commands.write.InvalidateCommand command) throws java.lang.Throwable
- Specified by:
visitInvalidateCommand
in interfaceorg.infinispan.commands.Visitor
- Throws:
java.lang.Throwable
-
visitInvalidateL1Command
public java.lang.Object visitInvalidateL1Command(InvocationContext ctx, org.infinispan.commands.write.InvalidateL1Command command) throws java.lang.Throwable
- Specified by:
visitInvalidateL1Command
in interfaceorg.infinispan.commands.Visitor
- Throws:
java.lang.Throwable
-
visitLockControlCommand
public java.lang.Object visitLockControlCommand(org.infinispan.context.impl.TxInvocationContext ctx, org.infinispan.commands.control.LockControlCommand command) throws java.lang.Throwable
- Specified by:
visitLockControlCommand
in interfaceorg.infinispan.commands.Visitor
- Throws:
java.lang.Throwable
-
visitUnknownCommand
public java.lang.Object visitUnknownCommand(InvocationContext ctx, org.infinispan.commands.VisitableCommand command) throws java.lang.Throwable
- Specified by:
visitUnknownCommand
in interfaceorg.infinispan.commands.Visitor
- Throws:
java.lang.Throwable
-
visitGetKeysInGroupCommand
public java.lang.Object visitGetKeysInGroupCommand(InvocationContext ctx, org.infinispan.commands.remote.GetKeysInGroupCommand command) throws java.lang.Throwable
- Specified by:
visitGetKeysInGroupCommand
in interfaceorg.infinispan.commands.Visitor
- Throws:
java.lang.Throwable
-
visitReadOnlyKeyCommand
public java.lang.Object visitReadOnlyKeyCommand(InvocationContext ctx, org.infinispan.commands.functional.ReadOnlyKeyCommand command) throws java.lang.Throwable
- Specified by:
visitReadOnlyKeyCommand
in interfaceorg.infinispan.commands.Visitor
- Throws:
java.lang.Throwable
-
visitReadOnlyManyCommand
public java.lang.Object visitReadOnlyManyCommand(InvocationContext ctx, org.infinispan.commands.functional.ReadOnlyManyCommand command) throws java.lang.Throwable
- Specified by:
visitReadOnlyManyCommand
in interfaceorg.infinispan.commands.Visitor
- Throws:
java.lang.Throwable
-
visitWriteOnlyKeyCommand
public java.lang.Object visitWriteOnlyKeyCommand(InvocationContext ctx, org.infinispan.commands.functional.WriteOnlyKeyCommand command) throws java.lang.Throwable
- Specified by:
visitWriteOnlyKeyCommand
in interfaceorg.infinispan.commands.Visitor
- Throws:
java.lang.Throwable
-
visitReadWriteKeyValueCommand
public java.lang.Object visitReadWriteKeyValueCommand(InvocationContext ctx, org.infinispan.commands.functional.ReadWriteKeyValueCommand command) throws java.lang.Throwable
- Specified by:
visitReadWriteKeyValueCommand
in interfaceorg.infinispan.commands.Visitor
- Throws:
java.lang.Throwable
-
visitReadWriteKeyCommand
public java.lang.Object visitReadWriteKeyCommand(InvocationContext ctx, org.infinispan.commands.functional.ReadWriteKeyCommand command) throws java.lang.Throwable
- Specified by:
visitReadWriteKeyCommand
in interfaceorg.infinispan.commands.Visitor
- Throws:
java.lang.Throwable
-
visitWriteOnlyManyEntriesCommand
public java.lang.Object visitWriteOnlyManyEntriesCommand(InvocationContext ctx, org.infinispan.commands.functional.WriteOnlyManyEntriesCommand command) throws java.lang.Throwable
- Specified by:
visitWriteOnlyManyEntriesCommand
in interfaceorg.infinispan.commands.Visitor
- Throws:
java.lang.Throwable
-
visitWriteOnlyKeyValueCommand
public java.lang.Object visitWriteOnlyKeyValueCommand(InvocationContext ctx, org.infinispan.commands.functional.WriteOnlyKeyValueCommand command) throws java.lang.Throwable
- Specified by:
visitWriteOnlyKeyValueCommand
in interfaceorg.infinispan.commands.Visitor
- Throws:
java.lang.Throwable
-
visitWriteOnlyManyCommand
public java.lang.Object visitWriteOnlyManyCommand(InvocationContext ctx, org.infinispan.commands.functional.WriteOnlyManyCommand command) throws java.lang.Throwable
- Specified by:
visitWriteOnlyManyCommand
in interfaceorg.infinispan.commands.Visitor
- Throws:
java.lang.Throwable
-
visitReadWriteManyCommand
public java.lang.Object visitReadWriteManyCommand(InvocationContext ctx, org.infinispan.commands.functional.ReadWriteManyCommand command) throws java.lang.Throwable
- Specified by:
visitReadWriteManyCommand
in interfaceorg.infinispan.commands.Visitor
- Throws:
java.lang.Throwable
-
visitReadWriteManyEntriesCommand
public java.lang.Object visitReadWriteManyEntriesCommand(InvocationContext ctx, org.infinispan.commands.functional.ReadWriteManyEntriesCommand command) throws java.lang.Throwable
- Specified by:
visitReadWriteManyEntriesCommand
in interfaceorg.infinispan.commands.Visitor
- Throws:
java.lang.Throwable
-
-