use of org.apache.curator.framework.recipes.cache.TreeCache in project elastic-job by dangdangdotcom.
the class ZookeeperRegistryCenter method addCacheData.
@Override
public void addCacheData(final String cachePath) {
TreeCache cache = new TreeCache(client, cachePath);
try {
cache.start();
//CHECKSTYLE:OFF
} catch (final Exception ex) {
//CHECKSTYLE:ON
RegExceptionHandler.handleException(ex);
}
caches.put(cachePath + "/", cache);
}
Aggregations