A specialized node model implementation which operates on {@link ImmutableNode} structures.
This {@code NodeModel} implementation keeps all its data as a tree of{@link ImmutableNode} objects in memory. The managed structure can bemanipulated in a thread-safe, non-blocking way. This is achieved by using atomic variables: The root of the tree is stored in an atomic reference variable. Each update operation causes a new structure to be constructed (which reuses as much from the original structure as possible). The old root node is then replaced by the new one using an atomic compare-and-set operation. If this fails, the manipulation has to be done anew on the updated structure.
@version $Id: InMemoryNodeModel.java 1624601 2014-09-12 18:04:36Z oheger $ @since 2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|