public class Announcer extends Object
Constructor and Description |
---|
Announcer(org.apache.curator.framework.CuratorFramework curator,
ExecutorService exec) |
public Announcer(org.apache.curator.framework.CuratorFramework curator, ExecutorService exec)
public void start()
public void stop()
public void announce(String path, byte[] bytes)
path
- The path to announce atbytes
- The payload to announcepublic void update(String path, byte[] bytes)
public void unannounce(String path)
path
- the path to unannounceCopyright © 2011–2015. All rights reserved.