public class ClusterListenerReplicateCallable<K,V> extends Object implements DistributedCallable<K,V,Void>
RemoteClusterListener on the resulting node. This class
also has checks to ensure that if the listener is attempted to be installed from more than 1 source only 1 will be
installed as well if a node goes down while installing will also remove the listener.| Modifier and Type | Class and Description |
|---|---|
static class |
ClusterListenerReplicateCallable.Externalizer |
| Constructor and Description |
|---|
ClusterListenerReplicateCallable(UUID identifier,
Address origin,
CacheEventFilter<K,V> filter,
CacheEventConverter<K,V,?> converter,
boolean sync) |
| Modifier and Type | Method and Description |
|---|---|
Void |
call() |
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 ClusterListenerReplicateCallable(UUID identifier, Address origin, CacheEventFilter<K,V> filter, CacheEventConverter<K,V,?> converter, boolean sync)
public void setEnvironment(Cache<K,V> cache, Set<K> inputKeys)
DistributedCallablesetEnvironment in interface DistributedCallable<K,V,Void>cache - cache whose keys are used as input data for this DistributedCallable taskinputKeys - keys used as input for this DistributedCallable taskCopyright © 2025 JBoss, a division of Red Hat. All rights reserved.