io.atomix.core.tree.impl.DelegatingAsyncAtomicDocumentTree Maven / Gradle / Ivy
/*
* Copyright 2017-present Open Networking Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.atomix.core.tree.impl;
import com.google.common.base.MoreObjects;
import io.atomix.core.tree.AsyncAtomicDocumentTree;
import io.atomix.core.tree.DocumentPath;
import io.atomix.core.tree.AtomicDocumentTree;
import io.atomix.core.tree.DocumentTreeEventListener;
import io.atomix.primitive.impl.DelegatingAsyncPrimitive;
import io.atomix.utils.time.Versioned;
import java.time.Duration;
import java.util.Map;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.Executor;
/**
* Document tree that delegates to an underlying instance.
*/
public class DelegatingAsyncAtomicDocumentTree extends DelegatingAsyncPrimitive implements AsyncAtomicDocumentTree {
private final AsyncAtomicDocumentTree delegateTree;
public DelegatingAsyncAtomicDocumentTree(AsyncAtomicDocumentTree delegateTree) {
super(delegateTree);
this.delegateTree = delegateTree;
}
@Override
public DocumentPath root() {
return delegateTree.root();
}
@Override
public CompletableFuture
© 2015 - 2025 Weber Informatics LLC | Privacy Policy