leyoliu1987

Results 6 comments of leyoliu1987

Hi Mr Scott, Thank you for reply me! I test my appliation many times again, below is my simple code and running result and zookeeper Node structure. zk node structure:...

Hi Mr Scott, Thank you for reply me! I test my appliation many times again, below is my simple code and running result and zookeeper Node structure. zk node structure:...

Hi Mr Scott, I absolutely aggree you are right when you use "cache.getListenable().addListener(T listener)",can you try more time by using "cache.getListenable().addListener(T listener, Executor executor)" like below: public class TreeCacheExample {...

if use " ExecutorService pool = Executors..newCachedThreadPool()" as ThreadPool is no problem. I don't know why .

试下这几个参数,每次获取一个连接,返还一个连接都测试 一下是否是可用的状态 ,如果不是会自动删除并重建,然后获取下一个 pool.setTestOnBorrow(true); pool.setTestWhileIdle(true); pool.setTestOnReturn(true);