blob: 6ff99ee2bdbe964068fc5fc02ef28f736a2da653 [file] [log] [blame]
Jordan Haltermanf7554092017-07-30 15:05:51 -07001/*
2 * Copyright 2017-present Open Networking Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.store.service;
17
18import java.util.Map;
19import java.util.concurrent.CompletableFuture;
20
21import org.onosproject.store.primitives.NodeUpdate;
22import org.onosproject.store.primitives.TransactionId;
23
24/**
25 * Async document tree adapter.
26 */
27public class AsyncDocumentTreeAdapter<V> implements AsyncDocumentTree<V> {
28 @Override
29 public String name() {
30 return null;
31 }
32
33 @Override
34 public DocumentPath root() {
35 return null;
36 }
37
38 @Override
39 public CompletableFuture<Map<String, Versioned<V>>> getChildren(DocumentPath path) {
40 return null;
41 }
42
43 @Override
44 public CompletableFuture<Versioned<V>> get(DocumentPath path) {
45 return null;
46 }
47
48 @Override
49 public CompletableFuture<Versioned<V>> set(DocumentPath path, V value) {
50 return null;
51 }
52
53 @Override
54 public CompletableFuture<Boolean> create(DocumentPath path, V value) {
55 return null;
56 }
57
58 @Override
59 public CompletableFuture<Boolean> createRecursive(DocumentPath path, V value) {
60 return null;
61 }
62
63 @Override
64 public CompletableFuture<Boolean> replace(DocumentPath path, V newValue, long version) {
65 return null;
66 }
67
68 @Override
69 public CompletableFuture<Boolean> replace(DocumentPath path, V newValue, V currentValue) {
70 return null;
71 }
72
73 @Override
74 public CompletableFuture<Versioned<V>> removeNode(DocumentPath path) {
75 return null;
76 }
77
78 @Override
79 public CompletableFuture<Void> addListener(DocumentPath path, DocumentTreeListener<V> listener) {
80 return null;
81 }
82
83 @Override
84 public CompletableFuture<Void> removeListener(DocumentTreeListener<V> listener) {
85 return null;
86 }
87
88 @Override
89 public CompletableFuture<Version> begin(TransactionId transactionId) {
90 return null;
91 }
92
93 @Override
94 public CompletableFuture<Boolean> prepare(TransactionLog<NodeUpdate<V>> transactionLog) {
95 return null;
96 }
97
98 @Override
99 public CompletableFuture<Boolean> prepareAndCommit(TransactionLog<NodeUpdate<V>> transactionLog) {
100 return null;
101 }
102
103 @Override
104 public CompletableFuture<Void> commit(TransactionId transactionId) {
105 return null;
106 }
107
108 @Override
109 public CompletableFuture<Void> rollback(TransactionId transactionId) {
110 return null;
111 }
112}