public class Announcer extends Object
| Constructor and Description |
|---|
Announcer(org.apache.curator.framework.CuratorFramework curator,
ExecutorService exec) |
| Modifier and Type | Method and Description |
|---|---|
void |
announce(String path,
byte[] bytes)
Like announce(path, bytes, true).
|
void |
announce(String path,
byte[] bytes,
boolean removeParentIfCreated)
Announces the provided bytes at the given path.
|
void |
start() |
void |
stop() |
void |
unannounce(String path)
Unannounces an announcement created at path.
|
void |
update(String path,
byte[] bytes) |
public Announcer(org.apache.curator.framework.CuratorFramework curator,
ExecutorService exec)
public void start()
public void stop()
public void announce(String path, byte[] bytes)
public void announce(String path, byte[] bytes, boolean removeParentIfCreated)
path - The path to announce atbytes - The payload to announceremoveParentIfCreated - remove parent of "path" if we had created that parentpublic void update(String path, byte[] bytes)
public void unannounce(String path)
path - the path to unannounceCopyright © 2011–2017. All rights reserved.