|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InternalNode<K,V>
An internal node interface, that represents nodes that directly form the tree structure in the cache. This is as opposed
to 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.
NodeSPI
delegate to calls on an InternalNode, for example, NodeSPI.putDirect(Object, Object)
delegating to put(Object, Object)
.
Method Summary | |
---|---|
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)
|
Method Detail |
---|
V get(K key)
Map<K,V> getData()
V put(K key, V value)
void putAll(Map<? extends K,? extends V> data)
V remove(K key)
void clear()
Set<K> getKeys()
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 Map<Object,Node<K,V>> getChildrenMapDirect()
@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 flagSet<Object> getChildrenNames()
void 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)
NodeSPI<K,V> getParent()
CacheSPI<K,V> getCache()
void setVersion(DataVersion version)
DataVersion getVersion()
NodeLock getLock()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |