Class PersistentEphemeralNode
java.lang.Object
org.apache.curator.framework.recipes.nodes.PersistentNode
org.apache.curator.framework.recipes.nodes.PersistentEphemeralNode
- All Implemented Interfaces:
Closeable
,AutoCloseable
Deprecated.
A persistent ephemeral node is an ephemeral node that attempts to stay present in ZooKeeper, even through connection and session interruptions.
Thanks to bbeck (https://github.com/bbeck) for the initial coding and design
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Deprecated.This has been replaced with the more generalPersistentNode
-
Constructor Summary
ConstructorDescriptionPersistentEphemeralNode
(CuratorFramework client, PersistentEphemeralNode.Mode mode, String basePath, byte[] initData) Deprecated. -
Method Summary
Methods inherited from class org.apache.curator.framework.recipes.nodes.PersistentNode
close, deleteNode, getActualPath, getData, getListenable, setData, start, waitForInitialCreate
-
Constructor Details
-
PersistentEphemeralNode
public PersistentEphemeralNode(CuratorFramework client, PersistentEphemeralNode.Mode mode, String basePath, byte[] initData) Deprecated.- Parameters:
client
- client instancemode
- creation/protection modebasePath
- the base path for the nodeinitData
- data for the node
-
PersistentNode