-
Classes Class Description org.apache.curator.framework.recipes.cache.NodeCache replace byCuratorCache
org.apache.curator.framework.recipes.cache.PathChildrenCache replace byCuratorCache
org.apache.curator.framework.recipes.cache.TreeCache replace byCuratorCache
org.apache.curator.framework.recipes.locks.InterProcessSemaphore UseInterProcessSemaphoreV2
instead of this class. It uses a better algorithm.org.apache.curator.framework.recipes.nodes.PersistentEphemeralNode This has been replaced with the more generalPersistentNode
-
Enums Enum Description org.apache.curator.framework.recipes.cache.PathChildrenCacheMode no longer used. Instead use eitherPathChildrenCache(CuratorFramework, String, boolean)
orPathChildrenCache(CuratorFramework, String, boolean, ThreadFactory)
org.apache.curator.framework.recipes.nodes.PersistentEphemeralNode.Mode This has been replaced with the more generalPersistentNode
-
Methods Method Description org.apache.curator.framework.recipes.cache.PathChildrenCache.start(boolean) org.apache.curator.framework.recipes.shared.SharedCount.trySetCount(int) useSharedCount.trySetCount(VersionedValue, int)
for stronger atomicity guarantees. Even if this object's internal state is up-to-date, the caller has no way to ensure that they've read the most recently seen count.org.apache.curator.framework.recipes.shared.SharedValue.trySetValue(byte[]) useSharedValue.trySetValue(VersionedValue, byte[])
for stronger atomicity guarantees. Even if this object's internal state is up-to-date, the caller has no way to ensure that they've read the most recently seen value.
-
Constructors Constructor Description org.apache.curator.framework.recipes.cache.PathChildrenCache(CuratorFramework, String, PathChildrenCacheMode) org.apache.curator.framework.recipes.leader.LeaderSelector(CuratorFramework, String, ThreadFactory, Executor, LeaderSelectorListener) This constructor was poorly thought out. Custom executor is useless. Use this version instead:LeaderSelector(CuratorFramework, String, ExecutorService, LeaderSelectorListener)