Deprecated API
Contents
- 
Deprecated InterfacesInterfaceDescription
- 
Deprecated ClassesClassDescriptionreplace byCuratorCachereplace byCuratorCachereplace byCuratorCacheUseInterProcessSemaphoreV2instead of this class. It uses a better algorithm.This has been replaced with the more generalPersistentNodeSince 2.9.0 - Prefer CuratorFramework.create().creatingParentContainersIfNeeded() or CuratorFramework.exists().creatingParentContainersIfNeeded()
- 
Deprecated EnumsEnumDescriptionno longer used. Instead use eitherPathChildrenCache(CuratorFramework, String, boolean)orPathChildrenCache(CuratorFramework, String, boolean, ThreadFactory)This has been replaced with the more generalPersistentNode
- 
Deprecated MethodsMethodDescriptionthis 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)passingnulluseCuratorFramework.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
- 
Deprecated ConstructorsConstructorDescriptionThis 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