/** * Create a TreeCache for the given client and path with default options. * <p> * If the client is namespaced, all operations on the resulting TreeCache will be in terms of * the namespace, including all published events. The given path is the root at which the * TreeCache will watch and explore. If no node exists at the given path, the TreeCache will * be initially empty. * * @param client the client to use; may be namespaced * @param path the path to the root node to watch/explore; this path need not actually exist on * the server * @see #newBuilder(CuratorFramework, String) */ public TreeCache(CuratorFramework client, String path) { this(client, path, true, false, Integer.MAX_VALUE, Executors.newSingleThreadExecutor(defaultThreadFactory), false, new DefaultTreeCacheSelector()); }