curator
Jason-zheng
这个作者很懒,什么都没留下…
展开
-
【基于zookeeper 客户端的Curator API 基本操作】
pom依赖 <!-- zookeeper --> <dependency> <groupId>org.apache.zookeeper</groupId> <artifactId>zookeeper</artifactId> <version>3.4.9&l...原创 2019-08-23 14:29:35 · 113 阅读 · 0 评论 -
【Curator NodeCache 源码解析】
NodeCache NodeCache在new对象时候会调用client.newWatcherRemoveCuratorFramework去新建一个监听客户端。 /** * @param client curztor client * @param path the full path to the node to cache * @param dataIsC...原创 2019-08-23 14:36:47 · 544 阅读 · 0 评论 -
【基于Apache zookeeper 客户端curator -重试机制】
重试机制优雅的处理 1. curator 进行数据请求时,通过StandardConnectionHandlingPolicy类中的callWithRetry进行处理。 @Override public <T> T callWithRetry(CuratorZookeeperClient client, Callable<T> proc) throws Excep...原创 2019-08-28 16:38:59 · 2346 阅读 · 0 评论