activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r908868 - /activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/JobFacade.java
Date Thu, 11 Feb 2010 08:21:18 GMT
Author: rajdavies
Date: Thu Feb 11 08:21:17 2010
New Revision: 908868

URL: http://svn.apache.org/viewvc?rev=908868&view=rev
Log:
Added cron support for scheduled delivery - this is further enhancements for 
https://issues.apache.org/activemq/browse/AMQ-451

Modified:
    activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/JobFacade.java

Modified: activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/JobFacade.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/JobFacade.java?rev=908868&r1=908867&r2=908868&view=diff
==============================================================================
--- activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/JobFacade.java (original)
+++ activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/JobFacade.java Thu Feb
11 08:21:17 2010
@@ -34,6 +34,14 @@
     public String getNextExecutionTime() {
         return toString(data.get("next"));
     }
+    
+    public long getDelay() {
+        Long result = (Long) data.get("delay");
+        if (result != null) {
+            return result.longValue();
+        }
+        return 0l;
+    }
 
     public long getPeriod() {
         Long result = (Long) data.get("period");



Mime
View raw message