[jboss-cvs] JBossCache/src/org/jboss/cache/config ...
Brian Stansberry
brian.stansberry at jboss.com
Mon Jan 29 17:42:18 EST 2007
User: bstansberry
Date: 07/01/29 17:42:17
Modified: src/org/jboss/cache/config Configuration.java
Log:
[JBCACHE-955] Add LockParentForChildInsertRemove
Revision Changes Path
1.38 +23 -0 JBossCache/src/org/jboss/cache/config/Configuration.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Configuration.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/config/Configuration.java,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -b -r1.37 -r1.38
--- Configuration.java 15 Jan 2007 18:10:56 -0000 1.37
+++ Configuration.java 29 Jan 2007 22:42:17 -0000 1.38
@@ -89,6 +89,7 @@
private String serviceName;
private long initialStateRetrievalTimeout = 10000;
private IsolationLevel isolationLevel = IsolationLevel.REPEATABLE_READ;
+ private boolean lockParentForChildInsertRemove = true;
@Dynamic
private EvictionConfig evictionConfig = null;
private boolean useRegionBasedMarshalling = false;
@@ -365,6 +366,17 @@
setIsolationLevel(isolationLevel);
}
+ /**
+ * Sets whether inserting or removing a node requires a write lock
+ * on the node's parent (when pessimistic locking is used.)
+ * <p/>
+ * The default value is <code>true</code>
+ */
+ public void setLockParentForChildInsertRemove(boolean lockParentForChildInsertRemove)
+ {
+ this.lockParentForChildInsertRemove = lockParentForChildInsertRemove;
+ }
+
public void setMultiplexerStack(String stackName)
{
testImmutability("muxStackName");
@@ -479,6 +491,17 @@
return isolationLevel;
}
+ /**
+ * Gets whether inserting or removing a node requires a write lock
+ * on the node's parent (when pessimistic locking is used.)
+ * <p/>
+ * The default value is <code>true</code>
+ */
+ public boolean getLockParentForChildInsertRemove()
+ {
+ return lockParentForChildInsertRemove;
+ }
+
public boolean isUseRegionBasedMarshalling()
{
return useRegionBasedMarshalling;
More information about the jboss-cvs-commits
mailing list