Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-3897

Listener with @ViewChanged annotation for RemoteCacheManager.

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Unresolved
    • Optional
    • None
    • None
    • Listeners
    • None

    Description

      Create Listener with @ViewChanged annotation for RemoteCacheManager.

      Similarly like it is done for embedded Infinispan. There is @ViewChanged annotation which can be used when cluster topology is changed.

      For remote cache:
      RemoteCacheManager cacheContainer = new RemoteCacheManager(resource, true);

      cacheManager.addListener(new CacheManagerListener());
      @Listener
      public class CacheManagerListener

      { @CacheStarted }

      @CacheStopped
      }

      @ViewChanged
      public void viewChanged(ViewChangedEvent event) {
      }
      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            tomas11 Tomas Tomas (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: