V - tree node value typepublic class DefaultDocumentTree<V> extends Object implements org.onosproject.store.service.DocumentTree<V>
DocumentTree.| Constructor and Description |
|---|
DefaultDocumentTree() |
DefaultDocumentTree(com.google.common.base.Supplier<Long> versionSupplier) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(org.onosproject.store.service.DocumentPath path,
org.onosproject.store.service.DocumentTreeListener<V> listener) |
boolean |
create(org.onosproject.store.service.DocumentPath path,
V value) |
boolean |
createRecursive(org.onosproject.store.service.DocumentPath path,
V value) |
org.onosproject.store.service.Versioned<V> |
get(org.onosproject.store.service.DocumentPath path) |
Map<String,org.onosproject.store.service.Versioned<V>> |
getChildren(org.onosproject.store.service.DocumentPath path) |
void |
removeListener(org.onosproject.store.service.DocumentTreeListener<V> listener) |
org.onosproject.store.service.Versioned<V> |
removeNode(org.onosproject.store.service.DocumentPath path) |
boolean |
replace(org.onosproject.store.service.DocumentPath path,
V newValue,
long version) |
boolean |
replace(org.onosproject.store.service.DocumentPath path,
V newValue,
V currentValue) |
org.onosproject.store.service.DocumentPath |
root() |
org.onosproject.store.service.Versioned<V> |
set(org.onosproject.store.service.DocumentPath path,
V value) |
public DefaultDocumentTree()
public DefaultDocumentTree(com.google.common.base.Supplier<Long> versionSupplier)
public org.onosproject.store.service.DocumentPath root()
root in interface org.onosproject.store.service.DocumentTree<V>public Map<String,org.onosproject.store.service.Versioned<V>> getChildren(org.onosproject.store.service.DocumentPath path)
getChildren in interface org.onosproject.store.service.DocumentTree<V>public org.onosproject.store.service.Versioned<V> get(org.onosproject.store.service.DocumentPath path)
get in interface org.onosproject.store.service.DocumentTree<V>public org.onosproject.store.service.Versioned<V> set(org.onosproject.store.service.DocumentPath path, V value)
set in interface org.onosproject.store.service.DocumentTree<V>public boolean create(org.onosproject.store.service.DocumentPath path,
V value)
create in interface org.onosproject.store.service.DocumentTree<V>public boolean createRecursive(org.onosproject.store.service.DocumentPath path,
V value)
createRecursive in interface org.onosproject.store.service.DocumentTree<V>public boolean replace(org.onosproject.store.service.DocumentPath path,
V newValue,
long version)
replace in interface org.onosproject.store.service.DocumentTree<V>public boolean replace(org.onosproject.store.service.DocumentPath path,
V newValue,
V currentValue)
replace in interface org.onosproject.store.service.DocumentTree<V>public org.onosproject.store.service.Versioned<V> removeNode(org.onosproject.store.service.DocumentPath path)
removeNode in interface org.onosproject.store.service.DocumentTree<V>public void addListener(org.onosproject.store.service.DocumentPath path,
org.onosproject.store.service.DocumentTreeListener<V> listener)
addListener in interface org.onosproject.store.service.DocumentTree<V>