]
Tristan Tarrant reassigned ISPN-3897:
-------------------------------------
Assignee: (was: Mircea Markus)
Listener with @ViewChanged annotation for RemoteCacheManager.
-------------------------------------------------------------
Key: ISPN-3897
URL:
https://issues.jboss.org/browse/ISPN-3897
Project: Infinispan
Issue Type: Feature Request
Components: Listeners
Reporter: Tomas Tomas
Priority: Optional
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) {
}
}