Class BaseDistributionInterceptor.ReadOnlyManyHelper
- java.lang.Object
-
- org.infinispan.interceptors.distribution.BaseDistributionInterceptor.ReadOnlyManyHelper
-
- All Implemented Interfaces:
BaseDistributionInterceptor.ReadManyCommandHelper<org.infinispan.commands.functional.ReadOnlyManyCommand>,InvocationCallback<org.infinispan.commands.functional.ReadOnlyManyCommand>,InvocationSuccessFunction<org.infinispan.commands.functional.ReadOnlyManyCommand>
- Enclosing class:
- BaseDistributionInterceptor
protected class BaseDistributionInterceptor.ReadOnlyManyHelper extends java.lang.Object implements BaseDistributionInterceptor.ReadManyCommandHelper<org.infinispan.commands.functional.ReadOnlyManyCommand>
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedReadOnlyManyHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectapply(InvocationContext rCtx, org.infinispan.commands.functional.ReadOnlyManyCommand rCommand, java.lang.Object rv)Process the result from a successful invocation stage and either return a simple value, return a newInvocationStage, or throw an exception.voidapplyLocalResult(org.infinispan.interceptors.distribution.MergingCompletableFuture allFuture, java.lang.Object rv)org.infinispan.commands.functional.ReadOnlyManyCommandcopyForLocal(org.infinispan.commands.functional.ReadOnlyManyCommand command, java.util.List<java.lang.Object> keys)org.infinispan.commands.functional.ReadOnlyManyCommandcopyForRemote(org.infinispan.commands.functional.ReadOnlyManyCommand command, java.util.List<java.lang.Object> keys, InvocationContext ctx)java.util.concurrent.CompletionStage<java.lang.Void>fetchRequiredKeys(LocalizedCacheTopology cacheTopology, java.util.Map<Address,java.util.List<java.lang.Object>> requestedKeys, java.util.List<java.lang.Object> availableKeys, InvocationContext ctx, org.infinispan.commands.functional.ReadOnlyManyCommand command)java.util.Collection<?>keys(org.infinispan.commands.functional.ReadOnlyManyCommand command)java.lang.ObjecttransformResult(java.lang.Object[] results)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.infinispan.interceptors.InvocationSuccessFunction
apply
-
-
-
-
Method Detail
-
apply
public java.lang.Object apply(InvocationContext rCtx, org.infinispan.commands.functional.ReadOnlyManyCommand rCommand, java.lang.Object rv) throws java.lang.Throwable
Description copied from interface:InvocationSuccessFunctionProcess the result from a successful invocation stage and either return a simple value, return a newInvocationStage, or throw an exception.- Specified by:
applyin interfaceInvocationSuccessFunction<org.infinispan.commands.functional.ReadOnlyManyCommand>- Throws:
java.lang.Throwable
-
keys
public java.util.Collection<?> keys(org.infinispan.commands.functional.ReadOnlyManyCommand command)
- Specified by:
keysin interfaceBaseDistributionInterceptor.ReadManyCommandHelper<org.infinispan.commands.functional.ReadOnlyManyCommand>
-
copyForLocal
public org.infinispan.commands.functional.ReadOnlyManyCommand copyForLocal(org.infinispan.commands.functional.ReadOnlyManyCommand command, java.util.List<java.lang.Object> keys)- Specified by:
copyForLocalin interfaceBaseDistributionInterceptor.ReadManyCommandHelper<org.infinispan.commands.functional.ReadOnlyManyCommand>
-
copyForRemote
public org.infinispan.commands.functional.ReadOnlyManyCommand copyForRemote(org.infinispan.commands.functional.ReadOnlyManyCommand command, java.util.List<java.lang.Object> keys, InvocationContext ctx)- Specified by:
copyForRemotein interfaceBaseDistributionInterceptor.ReadManyCommandHelper<org.infinispan.commands.functional.ReadOnlyManyCommand>
-
applyLocalResult
public void applyLocalResult(org.infinispan.interceptors.distribution.MergingCompletableFuture allFuture, java.lang.Object rv)- Specified by:
applyLocalResultin interfaceBaseDistributionInterceptor.ReadManyCommandHelper<org.infinispan.commands.functional.ReadOnlyManyCommand>
-
transformResult
public java.lang.Object transformResult(java.lang.Object[] results)
- Specified by:
transformResultin interfaceBaseDistributionInterceptor.ReadManyCommandHelper<org.infinispan.commands.functional.ReadOnlyManyCommand>
-
fetchRequiredKeys
public java.util.concurrent.CompletionStage<java.lang.Void> fetchRequiredKeys(LocalizedCacheTopology cacheTopology, java.util.Map<Address,java.util.List<java.lang.Object>> requestedKeys, java.util.List<java.lang.Object> availableKeys, InvocationContext ctx, org.infinispan.commands.functional.ReadOnlyManyCommand command)
- Specified by:
fetchRequiredKeysin interfaceBaseDistributionInterceptor.ReadManyCommandHelper<org.infinispan.commands.functional.ReadOnlyManyCommand>
-
-