Author: joerg
Date: Mon Jan  8 13:41:21 2007
New Revision: 494203

URL: http://svn.apache.org/viewvc?view=rev&rev=494203
Log:
TRANSACTION-11: Added setDefaultTransactionTimeout() and reset() to 
ResourceManager.

Modified:
    jakarta/commons/proper/transaction/trunk/RELEASE-NOTES.txt
    
jakarta/commons/proper/transaction/trunk/src/java/org/apache/commons/transaction/file/ResourceManager.java

Modified: jakarta/commons/proper/transaction/trunk/RELEASE-NOTES.txt
URL: 
http://svn.apache.org/viewvc/jakarta/commons/proper/transaction/trunk/RELEASE-NOTES.txt?view=diff&rev=494203&r1=494202&r2=494203
==============================================================================
--- jakarta/commons/proper/transaction/trunk/RELEASE-NOTES.txt (original)
+++ jakarta/commons/proper/transaction/trunk/RELEASE-NOTES.txt Mon Jan  8 
13:41:21 2007
@@ -29,6 +29,7 @@
 - Added functions to FileResourceManager for copying and moving resources.
 - Added possibility to append to (instead of overwriting) an existing resource 
with writeResource in FileResourceManager.
 - Added LoggerFacade implementation for Jakarta Commons Logging
+- Added setDefaultTransactionTimeout() and reset() to ResourceManager (Jira 
issue TRANSACTION-11).
 
 BUGFIXES FROM 1.1
 -----------------

Modified: 
jakarta/commons/proper/transaction/trunk/src/java/org/apache/commons/transaction/file/ResourceManager.java
URL: 
http://svn.apache.org/viewvc/jakarta/commons/proper/transaction/trunk/src/java/org/apache/commons/transaction/file/ResourceManager.java?view=diff&rev=494203&r1=494202&r2=494203
==============================================================================
--- 
jakarta/commons/proper/transaction/trunk/src/java/org/apache/commons/transaction/file/ResourceManager.java
 (original)
+++ 
jakarta/commons/proper/transaction/trunk/src/java/org/apache/commons/transaction/file/ResourceManager.java
 Mon Jan  8 13:41:21 2007
@@ -133,6 +133,13 @@
     public boolean recover() throws ResourceManagerSystemException;
 
     /**
+     * Resets the store if applicable (optional operation).
+     * 
+     * @throws UnsupportedOperationException if the <code>reset</code> 
operation is not supported by this ResourceManager.
+     */
+    public void reset();
+    
+    /**
      * Gets the default isolation level as an integer. 
      * The higher the value the higher the isolation.
      *  
@@ -193,17 +200,27 @@
     public void setIsolationLevel(Object txId, int level) throws 
ResourceManagerException;
 
     /**
-     * Gets the default transaction timeout. After this time expires and the 
concerned transaction
-     * has not finished - either rolled back or committed - the resource 
manager is allowed and
-     * also encouraged - but not required - to abort the transaction and to 
roll it back. 
+     * Gets the default transaction timeout in milliseconds.
+     * After this time expires and the concerned transaction has not finished
+     * - either rolled back or committed - the resource manager is allowed and
+     * also encouraged - but not required - to abort the transaction and to 
roll it back.
      * 
-     * @return default transaction timeout
+     * @return default transaction timeout in milliseconds
      * @throws ResourceManagerException if an error occured
      */
     public long getDefaultTransactionTimeout() throws ResourceManagerException;
 
     /**
-     * Gets the transaction timeout of the specified transaction.
+     * Sets the default transaction timeout in milliseconds.
+     * 
+     * @param mSecs default transaction timeout in milliseconds
+     * @throws ResourceManagerException if an error occured
+     * @see #getDefaultTransactionTimeout
+     */
+    public void setDefaultTransactionTimeout(long mSecs) throws 
ResourceManagerException;
+    
+    /**
+     * Gets the transaction timeout of the specified transaction in 
milliseconds.
      * 
      * @param txId identifier for the concerned transaction
      * @return transaction timeout of the specified transaction in milliseconds
@@ -213,7 +230,7 @@
     public long getTransactionTimeout(Object txId) throws 
ResourceManagerException;
 
     /**
-     * Sets the transaction timeout of the specified transaction.
+     * Sets the transaction timeout of the specified transaction in 
milliseconds.
      * 
      * @param txId identifier for the concerned transaction
      * @param mSecs transaction timeout of the specified transaction in 
milliseconds



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to