public class ClusterListenerReplicateCallable<K,V> extends Object implements Function<EmbeddedCacheManager,Void>, BiConsumer<EmbeddedCacheManager,Cache<K,V>>
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(String cacheName,
UUID identifier,
Address origin,
CacheEventFilter<K,V> filter,
CacheEventConverter<K,V,?> converter,
boolean sync,
Set<Class<? extends Annotation>> filterAnnotations,
DataConversion keyDataConversion,
DataConversion valueDataConversion,
boolean useStorageFormat) |
Modifier and Type | Method and Description |
---|---|
void |
accept(EmbeddedCacheManager cacheManager,
Cache<K,V> cache) |
Void |
apply(EmbeddedCacheManager cacheManager) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
andThen
public ClusterListenerReplicateCallable(String cacheName, UUID identifier, Address origin, CacheEventFilter<K,V> filter, CacheEventConverter<K,V,?> converter, boolean sync, Set<Class<? extends Annotation>> filterAnnotations, DataConversion keyDataConversion, DataConversion valueDataConversion, boolean useStorageFormat)
public Void apply(EmbeddedCacheManager cacheManager)
apply
in interface Function<EmbeddedCacheManager,Void>
public void accept(EmbeddedCacheManager cacheManager, Cache<K,V> cache)
accept
in interface BiConsumer<EmbeddedCacheManager,Cache<K,V>>
Copyright © 2021 JBoss by Red Hat. All rights reserved.