public class GlobalKeySetTask<K,V> extends Object implements DistributedCallable<K,V,Set<K>>, Serializable
DistributedCallable
for obtaining all of the keys
across a cluster.Constructor and Description |
---|
GlobalKeySetTask() |
Modifier and Type | Method and Description |
---|---|
Set<K> |
call() |
static <K,V> Set<K> |
getGlobalKeySet(Cache<K,V> cache) |
void |
setEnvironment(Cache<K,V> cache,
Set<K> inputKeys)
Invoked by execution environment after DistributedCallable has been migrated for execution to
a specific Infinispan node.
|
public void setEnvironment(Cache<K,V> cache, Set<K> inputKeys)
DistributedCallable
setEnvironment
in interface DistributedCallable<K,V,Set<K>>
cache
- cache whose keys are used as input data for this DistributedCallable taskinputKeys
- keys used as input for this DistributedCallable taskpublic static <K,V> Set<K> getGlobalKeySet(Cache<K,V> cache) throws InterruptedException, ExecutionException
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.