Class ClusterListenerReplicateCallable<K,​V>

  • All Implemented Interfaces:
    java.util.function.BiConsumer<EmbeddedCacheManager,​Cache<K,​V>>, java.util.function.Function<EmbeddedCacheManager,​java.lang.Void>

    public class ClusterListenerReplicateCallable<K,​V>
    extends java.lang.Object
    implements java.util.function.Function<EmbeddedCacheManager,​java.lang.Void>, java.util.function.BiConsumer<EmbeddedCacheManager,​Cache<K,​V>>
    This DistributedCallable is used to install a 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.
    Since:
    7.0
    Author:
    wburns
    • Constructor Detail

      • ClusterListenerReplicateCallable

        public ClusterListenerReplicateCallable​(java.lang.String cacheName,
                                                java.util.UUID identifier,
                                                Address origin,
                                                CacheEventFilter<K,​V> filter,
                                                CacheEventConverter<K,​V,​?> converter,
                                                boolean sync,
                                                java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> filterAnnotations,
                                                DataConversion keyDataConversion,
                                                DataConversion valueDataConversion,
                                                boolean useStorageFormat)
    • Method Detail

      • apply

        public java.lang.Void apply​(EmbeddedCacheManager cacheManager)
        Specified by:
        apply in interface java.util.function.Function<K,​V>
      • accept

        public void accept​(EmbeddedCacheManager cacheManager,
                           Cache<K,​V> cache)
        Specified by:
        accept in interface java.util.function.BiConsumer<K,​V>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object