Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-1552

RemoteCacheManagerAdmin should return always a RemoteCache

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • JDG 7.2 ER4
    • JDG 7.2 ER3
    • HotRod Java client
    • None
    • JDG Sprint #9

      After JDG-1534, we can create a cache using a configuration in the client side.

      In this case, when creating a cache with the configuration, RemoteCacheManagerAdmin is returning a BasicCache.

      The only way to get the RemoteCache is doing the following

            BasicCache<String, String> cache = cacheManager.administration()
                  .withFlags(CacheContainerAdmin.AdminFlag.PERMANENT)
                  .getOrCreateCache("test-5", config.build());
      
            RemoteCache<String, String> remoteCache = cacheManager.getCache("test-5");
      
            MyListener myListener = new MyListener();
            remoteCache.addClientListener(myListener);
      

      It will be good if RemoteCacheManagerAdmin always return a RemoteCache

              ttarrant@redhat.com Tristan Tarrant
              dlovison@redhat.com Diego Lovison
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: