Class TriangleFunctionsUtil
java.lang.Object
org.infinispan.util.TriangleFunctionsUtil
Some utility functions for
TriangleDistributionInterceptor.- Since:
- 9.2
- Author:
- Pedro Ruivo
-
Method Summary
Modifier and TypeMethodDescriptionstatic <K,V, R> ReadWriteManyCommand <K, V, R> copy(ReadWriteManyCommand<K, V, R> command, Collection<Object> keys) static <K,V, T, R> ReadWriteManyEntriesCommand <K, V, T, R> copy(ReadWriteManyEntriesCommand<K, V, T, R> command, Collection<Object> keys) static <K,V> WriteOnlyManyCommand <K, V> copy(WriteOnlyManyCommand<K, V> command, Collection<Object> keys) static <K,V, T> WriteOnlyManyEntriesCommand <K, V, T> copy(WriteOnlyManyEntriesCommand<K, V, T> command, Collection<Object> keys) static PutMapCommandcopy(PutMapCommand command, Collection<Object> keys) static Map<Integer, Collection<Object>> filterBySegment(LocalizedCacheTopology cacheTopology, Collection<Object> keys) static <K,V> Map <K, V> filterEntries(Map<K, V> map, Collection<Object> keys) mergeHashMap(ValidResponse response, Map<Object, Object> resultMap) mergeList(ValidResponse response, List<Object> resultList) static VoidvoidMerge(ValidResponse ignored1, Void ignored2)
-
Method Details
-
copy
-
copy
public static <K,V, WriteOnlyManyEntriesCommand<K,T> V, copyT> (WriteOnlyManyEntriesCommand<K, V, T> command, Collection<Object> keys) -
copy
public static <K,V> WriteOnlyManyCommand<K,V> copy(WriteOnlyManyCommand<K, V> command, Collection<Object> keys) -
copy
public static <K,V, ReadWriteManyCommand<K,R> V, copyR> (ReadWriteManyCommand<K, V, R> command, Collection<Object> keys) -
copy
public static <K,V, ReadWriteManyEntriesCommand<K,T, R> V, copyT, R> (ReadWriteManyEntriesCommand<K, V, T, R> command, Collection<Object> keys) -
mergeHashMap
-
voidMerge
-
mergeList
-
filterBySegment
public static Map<Integer, Collection<Object>> filterBySegment(LocalizedCacheTopology cacheTopology, Collection<Object> keys) -
filterEntries
-