Class BatchingClusterEventManagerImpl<K,​V>

    • Constructor Detail

      • BatchingClusterEventManagerImpl

        public BatchingClusterEventManagerImpl()
    • Method Detail

      • start

        public void start()
      • addEvents

        public void addEvents​(Address target,
                              UUID identifier,
                              Collection<ClusterEvent<K,​V>> events,
                              boolean sync)
        Description copied from interface: ClusterEventManager
        Adds additional cluster events that need to be sent remotely for an event originating locally. These events are not sent at time of registering but rather after the ClusterEventManager.sendEvents() is invoked. These events are gathered on a per thread basis and batched to reduce number of RPCs required.
        Specified by:
        addEvents in interface ClusterEventManager<K,​V>
        Parameters:
        target - The target node this event was meant for
        identifier - The cluster listener that is identified for these events
        events - The events that were generated
        sync - Whether these events need to be sent synchronously or not