[infinispan-issues] [JBoss JIRA] (ISPN-8808) RemoteCacheManagerAdmin should return always a RemoteCache
Tristan Tarrant (JIRA)
issues at jboss.org
Thu Feb 15 03:38:00 EST 2018
[ https://issues.jboss.org/browse/ISPN-8808?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tristan Tarrant updated ISPN-8808:
----------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request: https://github.com/infinispan/infinispan/pull/5760
> RemoteCacheManagerAdmin should return always a RemoteCache
> ----------------------------------------------------------
>
> Key: ISPN-8808
> URL: https://issues.jboss.org/browse/ISPN-8808
> Project: Infinispan
> Issue Type: Enhancement
> Reporter: Diego Lovison
> Assignee: Galder Zamarreño
>
> After [ISPN-8808|https://issues.jboss.org/browse/ISPN-8808], 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
> {code:java}
> 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);
> {code}
> It will be good if RemoteCacheManagerAdmin always return a RemoteCache
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the infinispan-issues
mailing list