public interface InternalNode<K,V>
Node
and its NodeSPI
sub-interface, which are typically implemented by delegates which then delegate calls
to internal nodes, potentially after passing the call up an interceptor chain.
All calls on an InternalNode are executed directly on the data structure. Usually, XXXDirect() calls on NodeSPI
delegate to calls on an InternalNode, for example, NodeSPI.putDirect(Object, Object)
delegating to put(Object, Object)
.
Modifier and Type | Method and Description |
---|---|
void |
addChild(InternalNode<K,V> child) |
void |
addChild(InternalNode<K,V> child,
boolean safe)
Same as above, except that if safe is true, any Fqn ancestry checking is skipped.
|
void |
addChild(Object nodeName,
InternalNode<K,V> nodeToAdd) |
NodeSPI<K,V> |
addChildDirect(Fqn f)
Deprecated.
|
NodeSPI<K,V> |
addChildDirect(Fqn f,
boolean notify)
Deprecated.
|
void |
addChildDirect(NodeSPI<K,V> child)
Deprecated.
|
NodeSPI<K,V> |
addChildDirect(Object o,
boolean notify)
Deprecated.
|
void |
addChildDirect(Object nodeName,
Node<K,V> nodeToAdd)
Deprecated.
|
void |
clear() |
boolean |
containsKey(K key) |
InternalNode<K,V> |
copy()
Creates a new instance of the same type and copies internal state.
|
V |
get(K key) |
CacheSPI<K,V> |
getCache() |
InternalNode<K,V> |
getChild(Fqn f) |
InternalNode<K,V> |
getChild(Object childName) |
NodeSPI<K,V> |
getChildDirect(Fqn fqn)
Deprecated.
|
NodeSPI<K,V> |
getChildDirect(Object childName)
Deprecated.
|
Set<InternalNode<K,V>> |
getChildren() |
Set<InternalNode<K,V>> |
getChildren(boolean includeMarkedForRemoval) |
Set<NodeSPI<K,V>> |
getChildrenDirect()
Deprecated.
|
Set<NodeSPI<K,V>> |
getChildrenDirect(boolean includeMarkedForRemoval)
Deprecated.
|
ConcurrentMap<Object,InternalNode<K,V>> |
getChildrenMap() |
Map<Object,Node<K,V>> |
getChildrenMapDirect()
Deprecated.
|
Set<Object> |
getChildrenNames() |
Map<K,V> |
getData() |
Fqn |
getFqn() |
Map |
getInternalState(boolean onlyInternalState) |
Set<K> |
getKeys() |
NodeLock |
getLock() |
NodeSPI<K,V> |
getOrCreateChild(Object childName,
GlobalTransaction gtx)
Deprecated.
should use the
NodeFactory instead. |
NodeSPI<K,V> |
getParent() |
DataVersion |
getVersion() |
boolean |
hasChildren() |
boolean |
isChildrenLoaded() |
boolean |
isDataLoaded() |
boolean |
isLockForChildInsertRemove() |
boolean |
isRemoved() |
boolean |
isResident() |
boolean |
isValid() |
void |
markAsRemoved(boolean marker,
boolean recursive) |
void |
printDetails(StringBuilder sb,
int indent) |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> data) |
void |
releaseObjectReferences(boolean recursive) |
V |
remove(K key) |
boolean |
removeChild(Fqn f) |
boolean |
removeChild(Object childName) |
void |
removeChildren() |
void |
setChildrenLoaded(boolean flag) |
void |
setChildrenMap(ConcurrentMap<Object,InternalNode<K,V>> children) |
void |
setChildrenMapDirect(Map<Object,Node<K,V>> children)
Deprecated.
|
void |
setDataLoaded(boolean dataLoaded) |
void |
setFqn(Fqn fqn)
Sets the node's Fqn
|
void |
setInternalState(Map state) |
void |
setLockForChildInsertRemove(boolean lockForChildInsertRemove) |
void |
setRemoved(boolean marker) |
void |
setResident(boolean resident) |
void |
setValid(boolean valid,
boolean recursive) |
void |
setVersion(DataVersion version) |
void clear()
boolean containsKey(K key)
void setInternalState(Map state)
Map getInternalState(boolean onlyInternalState)
void releaseObjectReferences(boolean recursive)
Fqn getFqn()
void setFqn(Fqn fqn)
fqn
- Fqn to set toboolean hasChildren()
@Deprecated NodeSPI<K,V> getChildDirect(Fqn fqn)
@Deprecated NodeSPI<K,V> getChildDirect(Object childName)
@Deprecated Set<NodeSPI<K,V>> getChildrenDirect()
@Deprecated Set<NodeSPI<K,V>> getChildrenDirect(boolean includeMarkedForRemoval)
@Deprecated void setChildrenMapDirect(Map<Object,Node<K,V>> children)
@Deprecated void addChildDirect(Object nodeName, Node<K,V> nodeToAdd)
@Deprecated void addChildDirect(NodeSPI<K,V> child)
@Deprecated NodeSPI<K,V> addChildDirect(Fqn f)
@Deprecated NodeSPI<K,V> addChildDirect(Fqn f, boolean notify)
@Deprecated NodeSPI<K,V> addChildDirect(Object o, boolean notify)
@Deprecated NodeSPI<K,V> getOrCreateChild(Object childName, GlobalTransaction gtx)
NodeFactory
instead.InternalNode<K,V> getChild(Fqn f)
InternalNode<K,V> getChild(Object childName)
Set<InternalNode<K,V>> getChildren()
Set<InternalNode<K,V>> getChildren(boolean includeMarkedForRemoval)
ConcurrentMap<Object,InternalNode<K,V>> getChildrenMap()
void setChildrenMap(ConcurrentMap<Object,InternalNode<K,V>> children)
void addChild(Object nodeName, InternalNode<K,V> nodeToAdd)
void addChild(InternalNode<K,V> child)
void addChild(InternalNode<K,V> child, boolean safe)
child
- child to addsafe
- safety flagvoid removeChildren()
boolean removeChild(Object childName)
boolean removeChild(Fqn f)
InternalNode<K,V> copy()
boolean isChildrenLoaded()
void setChildrenLoaded(boolean flag)
boolean isDataLoaded()
void setDataLoaded(boolean dataLoaded)
boolean isValid()
void setValid(boolean valid, boolean recursive)
boolean isLockForChildInsertRemove()
void setLockForChildInsertRemove(boolean lockForChildInsertRemove)
boolean isRemoved()
void setRemoved(boolean marker)
void markAsRemoved(boolean marker, boolean recursive)
void setResident(boolean resident)
boolean isResident()
void printDetails(StringBuilder sb, int indent)
void setVersion(DataVersion version)
DataVersion getVersion()
NodeLock getLock()
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.