|
ModeShape Distribution 3.3.0.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.jcr.txn.SynchronizedTransactions.SynchronizedMonitor
protected static final class SynchronizedTransactions.SynchronizedMonitor
Constructor Summary | |
---|---|
protected |
SynchronizedTransactions.SynchronizedMonitor(SessionEnvironment.Monitor delegate)
|
Method Summary | |
---|---|
protected void |
dispatchRecordedChanges()
|
void |
recordAdd(String workspace,
NodeKey key,
Path path,
Name primaryType,
Set<Name> mixinTypes,
Iterator<Property> propertiesIterator)
Add to the index the information about a node. |
void |
recordChanged(long changedNodesCount)
Record total number of nodes that were affected |
void |
recordRemove(String workspace,
Iterable<NodeKey> keys)
Remove from the index for the given workspace all of the nodes with the supplied keys. |
void |
recordUpdate(String workspace,
NodeKey key,
Path path,
Name primaryType,
Set<Name> mixinTypes,
Iterator<Property> properties)
Update the index to reflect the new state of the node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected SynchronizedTransactions.SynchronizedMonitor(SessionEnvironment.Monitor delegate)
Method Detail |
---|
public void recordAdd(String workspace, NodeKey key, Path path, Name primaryType, Set<Name> mixinTypes, Iterator<Property> propertiesIterator)
SessionEnvironment.Monitor
recordAdd
in interface SessionEnvironment.Monitor
workspace
- the workspace in which the node information should be available; may not be nullkey
- the unique key for the node; may not be nullpath
- the path of the node; may not be nullprimaryType
- the primary type of the node; may not be nullmixinTypes
- the mixin types for the node; may not be null but may be emptypropertiesIterator
- an iterator over a collection of propertiespublic void recordUpdate(String workspace, NodeKey key, Path path, Name primaryType, Set<Name> mixinTypes, Iterator<Property> properties)
SessionEnvironment.Monitor
recordUpdate
in interface SessionEnvironment.Monitor
workspace
- the workspace in which the node information should be available; may not be nullkey
- the unique key for the node; may not be nullpath
- the path of the node; may not be nullprimaryType
- the primary type of the node; may not be nullmixinTypes
- the mixin types for the node; may not be null but may be emptyproperties
- the properties of the node; may not be null but may be emptypublic void recordRemove(String workspace, Iterable<NodeKey> keys)
SessionEnvironment.Monitor
recordRemove
in interface SessionEnvironment.Monitor
workspace
- the workspace in which the nodes were removed; may not be nullkeys
- the keys for the nodes that are to be removed; may not be nullpublic void recordChanged(long changedNodesCount)
SessionEnvironment.Monitor
recordChanged
in interface SessionEnvironment.Monitor
protected void dispatchRecordedChanges()
|
ModeShape Distribution 3.3.0.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |