You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by oz...@apache.org on 2005/01/08 19:52:23 UTC
cvs commit: jakarta-commons/transaction/src/java/org/apache/commons/transaction/locking LockManager2.java
ozeigermann 2005/01/08 10:52:23
Modified: transaction/src/java/org/apache/commons/transaction/locking
LockManager2.java
Log:
Augmented with method for global timeout start
Revision Changes Path
1.3 +18 -4 jakarta-commons/transaction/src/java/org/apache/commons/transaction/locking/LockManager2.java
Index: LockManager2.java
===================================================================
RCS file: /home/cvs/jakarta-commons/transaction/src/java/org/apache/commons/transaction/locking/LockManager2.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- LockManager2.java 7 Jan 2005 23:24:03 -0000 1.2
+++ LockManager2.java 8 Jan 2005 18:52:23 -0000 1.3
@@ -141,6 +141,20 @@
boolean preferred, long timeoutMSecs) throws LockException;
/**
+ * Starts a global timeout for an owner. This is especially usefull, when the owner is a
+ * transaction. After a global timeout occurs all of the owner's lock will be released and
+ * the owner will not be allowed to access any
+ * locks before before calling {@link #releaseAll(Object)}.
+ *
+ * @param ownerId
+ * a unique id identifying the entity that wants to acquire this
+ * lock
+ * @param timeoutMSecs
+ * specifies the global timeout in milliseconds
+ */
+ public void startGlobalTimeout(Object ownerId, long timeoutMSecs);
+
+ /**
* Gets the lock level held by certain owner on a certain resource.
*
* @param ownerId the id of the owner of the lock
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org