Deprecated API
Contents
-
InterfaceDescription
-
ClassDescriptionreplace by
CuratorCache
replace byCuratorCache
replace byCuratorCache
UseInterProcessSemaphoreV2
instead of this class. It uses a better algorithm.This has been replaced with the more generalPersistentNode
Since 2.9.0 - Prefer CuratorFramework.create().creatingParentContainersIfNeeded() or CuratorFramework.exists().creatingParentContainersIfNeeded()
-
EnumDescriptionno longer used. Instead use either
PathChildrenCache(CuratorFramework, String, boolean)
orPathChildrenCache(CuratorFramework, String, boolean, ThreadFactory)
This has been replaced with the more generalPersistentNode
-
MethodDescriptionthis has been generalized to support all create modes. Instead, use:
client.create().withProtection().withMode(CreateMode.EPHEMERAL_SEQUENTIAL)...
As of ZooKeeper 3.5 Curators recipes will handle removing watcher references when they are no longer used. If you write your own recipe, follow the example of Curator recipes and useCuratorFramework.newWatcherRemoveCuratorFramework()
callingWatcherRemoveCuratorFramework.removeWatchers()
when closing your instance.useCuratorFramework.transaction()
insteaduseCuratorFramework.getState()
insteadSince 2.9.0 - useCuratorFramework.usingNamespace(java.lang.String)
passingnull
useCuratorFramework.sync()
insteaduseCuratorFramework.watchers()
in ZooKeeper 3.6+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.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.useKillSession.kill(ZooKeeper)
insteaduseKillSession.kill(ZooKeeper)
instead
-
ConstructorDescriptionThis constructor was poorly thought out. Custom executor is useless. Use this version instead:
LeaderSelector(CuratorFramework, String, ExecutorService, LeaderSelectorListener)
useSchemaViolation(Schema, ViolatorData, String)
instanceuseSchemaViolation(Schema, ViolatorData, String)
instance