Package org.infinispan.util
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 BackupWriteCommandbackupFrom(CommandsFactory factory, ReadWriteKeyCommand command) static BackupWriteCommandbackupFrom(CommandsFactory factory, ReadWriteKeyValueCommand command) static <K,V, R> BackupWriteCommand backupFrom(CommandsFactory factory, ReadWriteManyCommand<K, V, R> command, Collection<Object> keys) static <K,V, T, R>
BackupWriteCommandbackupFrom(CommandsFactory factory, ReadWriteManyEntriesCommand<K, V, T, R> command, Collection<Object> keys) static BackupWriteCommandbackupFrom(CommandsFactory factory, WriteOnlyKeyCommand command) static BackupWriteCommandbackupFrom(CommandsFactory factory, WriteOnlyKeyValueCommand command) static <K,V> BackupWriteCommand backupFrom(CommandsFactory factory, WriteOnlyManyCommand<K, V> command, Collection<Object> keys) static <K,V, T> BackupWriteCommand backupFrom(CommandsFactory factory, WriteOnlyManyEntriesCommand<K, V, T> command, Collection<Object> keys) static BackupWriteCommandbackupFrom(CommandsFactory factory, ComputeCommand command) static BackupWriteCommandbackupFrom(CommandsFactory factory, ComputeIfAbsentCommand command) static BackupWriteCommandbackupFrom(CommandsFactory factory, IracPutKeyValueCommand command) static BackupWriteCommandbackupFrom(CommandsFactory factory, PutKeyValueCommand command) static BackupWriteCommandbackupFrom(CommandsFactory factory, PutMapCommand command, Collection<Object> keys) static BackupWriteCommandbackupFrom(CommandsFactory factory, RemoveCommand command) static BackupWriteCommandbackupFrom(CommandsFactory factory, ReplaceCommand command) static <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
-
backupFrom
-
backupFrom
public static BackupWriteCommand backupFrom(CommandsFactory factory, IracPutKeyValueCommand command) -
backupFrom
-
backupFrom
-
backupFrom
public static BackupWriteCommand backupFrom(CommandsFactory factory, ComputeIfAbsentCommand command) -
backupFrom
-
backupFrom
public static BackupWriteCommand backupFrom(CommandsFactory factory, ReadWriteKeyValueCommand command) -
backupFrom
-
backupFrom
public static BackupWriteCommand backupFrom(CommandsFactory factory, WriteOnlyKeyValueCommand command) -
backupFrom
-
backupFrom
public static BackupWriteCommand backupFrom(CommandsFactory factory, PutMapCommand command, Collection<Object> keys) -
backupFrom
public static <K,V, BackupWriteCommand backupFromT> (CommandsFactory factory, WriteOnlyManyEntriesCommand<K, V, T> command, Collection<Object> keys) -
backupFrom
public static <K,V, BackupWriteCommand backupFromT, R> (CommandsFactory factory, ReadWriteManyEntriesCommand<K, V, T, R> command, Collection<Object> keys) -
backupFrom
public static <K,V> BackupWriteCommand backupFrom(CommandsFactory factory, WriteOnlyManyCommand<K, V> command, Collection<Object> keys) -
backupFrom
public static <K,V, BackupWriteCommand backupFromR> (CommandsFactory factory, ReadWriteManyCommand<K, V, R> command, Collection<Object> keys)
-