activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r629631 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/JDBCPersistenceAdapter.java
Date Wed, 20 Feb 2008 22:05:05 GMT
Author: chirino
Date: Wed Feb 20 14:05:02 2008
New Revision: 629631

URL: http://svn.apache.org/viewvc?rev=629631&view=rev
Log:
Fix for https://issues.apache.org/activemq/browse/AMQ-1591

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/JDBCPersistenceAdapter.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/JDBCPersistenceAdapter.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/JDBCPersistenceAdapter.java?rev=629631&r1=629630&r2=629631&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/JDBCPersistenceAdapter.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/JDBCPersistenceAdapter.java
Wed Feb 20 14:05:02 2008
@@ -77,7 +77,7 @@
     private int cleanupPeriod = 1000 * 60 * 5;
     private boolean useExternalMessageReferences;
     private boolean useDatabaseLock = true;
-    private int lockKeepAlivePeriod;
+    private long lockKeepAlivePeriod = 1000*30;
     private DatabaseLocker databaseLocker;
     private boolean createTablesOnStartup = true;
 
@@ -496,5 +496,13 @@
 
     public long size(){
         return 0;
+    }
+
+    public int getLockKeepAlivePeriod() {
+        return lockKeepAlivePeriod;
+    }
+
+    public void setLockKeepAlivePeriod(int lockKeepAlivePeriod) {
+        this.lockKeepAlivePeriod = lockKeepAlivePeriod;
     }
 }



Mime
View raw message