public class Holder extends Object
| 构造器和说明 |
|---|
Holder() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Close.
|
protected void |
initZookeeper() |
protected void |
processConnection(org.apache.zookeeper.WatchedEvent event) |
void |
reset()
Reset connection.
|
void |
start()
Start.
|
protected void |
start(int wait,
TimeUnit units) |
public void start()
throws IOException,
InterruptedException
IOException - IO exceptionInterruptedException - interrupted exceptionprotected void start(int wait,
TimeUnit units)
throws IOException,
InterruptedException
protected void initZookeeper()
throws IOException
IOExceptionprotected void processConnection(org.apache.zookeeper.WatchedEvent event)
public void reset()
throws IOException,
InterruptedException
IOException - IO exceptionInterruptedException - interrupted exceptionpublic void close()
Copyright © 2018. All rights reserved.