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 protected
ReadOnlyManyHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
apply(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.void
applyLocalResult(org.infinispan.interceptors.distribution.MergingCompletableFuture allFuture, java.lang.Object rv)
org.infinispan.commands.functional.ReadOnlyManyCommand
copyForLocal(org.infinispan.commands.functional.ReadOnlyManyCommand command, java.util.List<java.lang.Object> keys)
org.infinispan.commands.functional.ReadOnlyManyCommand
copyForRemote(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.Object
transformResult(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:InvocationSuccessFunction
Process the result from a successful invocation stage and either return a simple value, return a newInvocationStage
, or throw an exception.- Specified by:
apply
in interfaceInvocationSuccessFunction<org.infinispan.commands.functional.ReadOnlyManyCommand>
- Throws:
java.lang.Throwable
-
keys
public java.util.Collection<?> keys(org.infinispan.commands.functional.ReadOnlyManyCommand command)
- Specified by:
keys
in 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:
copyForLocal
in 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:
copyForRemote
in interfaceBaseDistributionInterceptor.ReadManyCommandHelper<org.infinispan.commands.functional.ReadOnlyManyCommand>
-
applyLocalResult
public void applyLocalResult(org.infinispan.interceptors.distribution.MergingCompletableFuture allFuture, java.lang.Object rv)
- Specified by:
applyLocalResult
in interfaceBaseDistributionInterceptor.ReadManyCommandHelper<org.infinispan.commands.functional.ReadOnlyManyCommand>
-
transformResult
public java.lang.Object transformResult(java.lang.Object[] results)
- Specified by:
transformResult
in 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:
fetchRequiredKeys
in interfaceBaseDistributionInterceptor.ReadManyCommandHelper<org.infinispan.commands.functional.ReadOnlyManyCommand>
-
-