public class ZookeeperStateRepository extends Object implements StateRepository, org.apache.curator.framework.recipes.cache.TreeCacheListener
| Modifier and Type | Class and Description |
|---|---|
static class |
ZookeeperStateRepository.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.curator.framework.CuratorFramework |
curatorFramework |
protected String |
featuresZnode |
protected CountDownLatch |
initializationLatch |
| Modifier and Type | Method and Description |
|---|---|
void |
childEvent(org.apache.curator.framework.CuratorFramework curatorFramework,
org.apache.curator.framework.recipes.cache.TreeCacheEvent event) |
FeatureState |
getFeatureState(Feature feature) |
static ZookeeperStateRepository.Builder |
newBuilder(org.apache.curator.framework.CuratorFramework curatorFramework,
String featuresZnode) |
void |
setFeatureState(FeatureState featureState) |
protected final org.apache.curator.framework.CuratorFramework curatorFramework
protected final String featuresZnode
protected CountDownLatch initializationLatch
public FeatureState getFeatureState(Feature feature)
getFeatureState in interface StateRepositorypublic void setFeatureState(FeatureState featureState)
setFeatureState in interface StateRepositorypublic void childEvent(org.apache.curator.framework.CuratorFramework curatorFramework,
org.apache.curator.framework.recipes.cache.TreeCacheEvent event)
throws Exception
childEvent in interface org.apache.curator.framework.recipes.cache.TreeCacheListenerExceptionpublic static ZookeeperStateRepository.Builder newBuilder(org.apache.curator.framework.CuratorFramework curatorFramework, String featuresZnode)
Copyright © 2018. All Rights Reserved.