作者热门文章
- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中io.fabric8.groups.internal.ZooKeeperGroup.clearAndRefresh()
方法的一些代码示例,展示了ZooKeeperGroup.clearAndRefresh()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZooKeeperGroup.clearAndRefresh()
方法的具体详情如下:
包路径:io.fabric8.groups.internal.ZooKeeperGroup
类名称:ZooKeeperGroup
方法名:clearAndRefresh
[英]Clear out current data and begin a new query on the path
[中]清除当前数据并在路径上开始新的查询
代码示例来源:origin: io.fabric8/fabric-groups
/**
* Clear out current data and begin a new query on the path
*
* @throws Exception errors
*/
public void clearAndRefresh() throws Exception {
clearAndRefresh(false, false);
}
代码示例来源:origin: jboss-fuse/fabric8
/**
* Clear out current data and begin a new query on the path
*
* @throws Exception errors
*/
public void clearAndRefresh() throws Exception {
clearAndRefresh(false, false);
}
代码示例来源:origin: jboss-fuse/fabric8
public void setGroup(final Group<CxfNodeState> group) throws Exception {
this.group = group;
group.add(new GroupListener<CxfNodeState>() {
@Override
public void groupEvent(Group<CxfNodeState> group, GroupEvent event) {
onUpdate(group);
}
});
if (group instanceof ZooKeeperGroup) {
// trigger refresh synchronously so we have up to date state before being used by clients
((ZooKeeperGroup) group).clearAndRefresh(true, true);
}
}
代码示例来源:origin: jboss-fuse/fabric8
private void prunePartialState(final T ourState, final String pathId) throws Exception {
if (ourState.uuid != null) {
clearAndRefresh(true, true);
List<ChildData<T>> children = new ArrayList<ChildData<T>>(currentData.values());
for (ChildData<T> child : children) {
if (ourState.uuid.equals(child.getNode().uuid) && !child.getPath().equals(pathId)) {
LOG.debug("Deleting partially created znode: " + child.getPath());
client.delete().guaranteed().forPath(child.getPath());
}
}
}
}
本文整理了Java中io.fabric8.groups.internal.ZooKeeperGroup.clearAndRefresh()方法的一些代码示例,展示了ZooKeeperGroup.cle
我是一名优秀的程序员,十分优秀!