V - tree node value type.public class DefaultDistributedDocumentTree<V> extends Object implements org.onosproject.store.service.AsyncDocumentTree<V>
AsyncDocumentTree.
This implementation delegates execution to a backing tree implemented on top of Atomix framework.
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
addListener(org.onosproject.store.service.DocumentPath path,
org.onosproject.store.service.DocumentTreeListener<V> listener) |
CompletableFuture<Boolean> |
create(org.onosproject.store.service.DocumentPath path,
V value) |
CompletableFuture<Boolean> |
createRecursive(org.onosproject.store.service.DocumentPath path,
V value) |
CompletableFuture<org.onosproject.store.service.Versioned<V>> |
get(org.onosproject.store.service.DocumentPath path) |
CompletableFuture<Map<String,org.onosproject.store.service.Versioned<V>>> |
getChildren(org.onosproject.store.service.DocumentPath path) |
String |
name() |
org.onosproject.store.service.DistributedPrimitive.Type |
primitiveType() |
CompletableFuture<Void> |
removeListener(org.onosproject.store.service.DocumentTreeListener<V> listener) |
CompletableFuture<org.onosproject.store.service.Versioned<V>> |
removeNode(org.onosproject.store.service.DocumentPath path) |
CompletableFuture<Boolean> |
replace(org.onosproject.store.service.DocumentPath path,
V newValue,
long version) |
CompletableFuture<Boolean> |
replace(org.onosproject.store.service.DocumentPath path,
V newValue,
V currentValue) |
org.onosproject.store.service.DocumentPath |
root() |
CompletableFuture<org.onosproject.store.service.Versioned<V>> |
set(org.onosproject.store.service.DocumentPath path,
V value) |
public String name()
name in interface org.onosproject.store.service.DistributedPrimitivepublic org.onosproject.store.service.DistributedPrimitive.Type primitiveType()
primitiveType in interface org.onosproject.store.service.DistributedPrimitivepublic org.onosproject.store.service.DocumentPath root()
root in interface org.onosproject.store.service.AsyncDocumentTree<V>public CompletableFuture<Map<String,org.onosproject.store.service.Versioned<V>>> getChildren(org.onosproject.store.service.DocumentPath path)
getChildren in interface org.onosproject.store.service.AsyncDocumentTree<V>public CompletableFuture<org.onosproject.store.service.Versioned<V>> get(org.onosproject.store.service.DocumentPath path)
get in interface org.onosproject.store.service.AsyncDocumentTree<V>public CompletableFuture<org.onosproject.store.service.Versioned<V>> set(org.onosproject.store.service.DocumentPath path, V value)
set in interface org.onosproject.store.service.AsyncDocumentTree<V>public CompletableFuture<Boolean> create(org.onosproject.store.service.DocumentPath path, V value)
create in interface org.onosproject.store.service.AsyncDocumentTree<V>public CompletableFuture<Boolean> createRecursive(org.onosproject.store.service.DocumentPath path, V value)
createRecursive in interface org.onosproject.store.service.AsyncDocumentTree<V>public CompletableFuture<Boolean> replace(org.onosproject.store.service.DocumentPath path, V newValue, long version)
replace in interface org.onosproject.store.service.AsyncDocumentTree<V>public CompletableFuture<Boolean> replace(org.onosproject.store.service.DocumentPath path, V newValue, V currentValue)
replace in interface org.onosproject.store.service.AsyncDocumentTree<V>public CompletableFuture<org.onosproject.store.service.Versioned<V>> removeNode(org.onosproject.store.service.DocumentPath path)
removeNode in interface org.onosproject.store.service.AsyncDocumentTree<V>public CompletableFuture<Void> addListener(org.onosproject.store.service.DocumentPath path, org.onosproject.store.service.DocumentTreeListener<V> listener)
addListener in interface org.onosproject.store.service.AsyncDocumentTree<V>public CompletableFuture<Void> removeListener(org.onosproject.store.service.DocumentTreeListener<V> listener)
removeListener in interface org.onosproject.store.service.AsyncDocumentTree<V>