public class ZooKeeperUpdatingPersistentDirectory
extends com.google.common.util.concurrent.AbstractIdleService
| Modifier and Type | Method and Description |
|---|---|
static ZooKeeperUpdatingPersistentDirectory |
create(String name,
ZooKeeperClientProvider client,
Path stateFile,
String path) |
Set<Map.Entry<String,byte[]>> |
entrySet() |
byte[] |
get(Object key) |
byte[] |
put(String key,
byte[] value) |
byte[] |
remove(Object key) |
protected void |
shutDown() |
protected void |
startUp() |
public byte[] put(String key, byte[] value) throws InterruptedException
InterruptedExceptionpublic byte[] remove(Object key) throws InterruptedException
InterruptedExceptionpublic byte[] get(Object key)
protected void startUp()
throws Exception
startUp in class com.google.common.util.concurrent.AbstractIdleServiceExceptionprotected void shutDown()
throws Exception
shutDown in class com.google.common.util.concurrent.AbstractIdleServiceExceptionpublic static ZooKeeperUpdatingPersistentDirectory create(String name, ZooKeeperClientProvider client, Path stateFile, String path) throws IOException, InterruptedException
IOExceptionInterruptedExceptionCopyright © 2017. All rights reserved.