public abstract class AbstractZookeeperClient<TargetChildListener> extends Object implements ZookeeperClient
Constructor and Description |
---|
AbstractZookeeperClient() |
Modifier and Type | Method and Description |
---|---|
List<String> |
addChildListener(String path,
ChildListener listener) |
void |
addStateListener(StateListener listener) |
protected abstract List<String> |
addTargetChildListener(String path,
TargetChildListener listener) |
void |
close() |
String |
create(String path,
boolean ephemeral,
boolean sequential) |
String |
create(String path,
Object data,
boolean ephemeral,
boolean sequential) |
protected abstract String |
createEphemeral(String path,
boolean sequential) |
protected abstract String |
createEphemeral(String path,
Object data,
boolean sequential) |
protected abstract String |
createPersistent(String path,
boolean sequential) |
protected abstract String |
createPersistent(String path,
Object data,
boolean sequential) |
protected abstract TargetChildListener |
createTargetChildListener(String path,
ChildListener listener) |
protected abstract void |
doClose() |
Set<StateListener> |
getSessionListeners() |
void |
removeChildListener(String path,
ChildListener listener) |
void |
removeStateListener(StateListener listener) |
protected abstract void |
removeTargetChildListener(String path,
TargetChildListener listener) |
protected void |
stateChanged(int state) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
delete, exists, getChildren, getData, isConnected
public String create(String path, boolean ephemeral, boolean sequential)
create
in interface ZookeeperClient
public String create(String path, Object data, boolean ephemeral, boolean sequential)
create
in interface ZookeeperClient
public Set<StateListener> getSessionListeners()
public void addStateListener(StateListener listener)
addStateListener
in interface ZookeeperClient
public void removeStateListener(StateListener listener)
removeStateListener
in interface ZookeeperClient
public List<String> addChildListener(String path, ChildListener listener)
addChildListener
in interface ZookeeperClient
public void removeChildListener(String path, ChildListener listener)
removeChildListener
in interface ZookeeperClient
public void close()
close
in interface ZookeeperClient
protected void stateChanged(int state)
protected abstract void doClose()
protected abstract String createPersistent(String path, Object data, boolean sequential)
protected abstract String createEphemeral(String path, Object data, boolean sequential)
protected abstract TargetChildListener createTargetChildListener(String path, ChildListener listener)
protected abstract List<String> addTargetChildListener(String path, TargetChildListener listener)
protected abstract void removeTargetChildListener(String path, TargetChildListener listener)
Copyright © 2014. All Rights Reserved.