mirror of https://github.com/apache/activemq.git
Added cron support for scheduled delivery - this is further enhancements for
https://issues.apache.org/activemq/browse/AMQ-451 git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@908868 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e3154c3cd6
commit
1a7fe702dc
|
@ -34,6 +34,14 @@ public class JobFacade {
|
|||
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");
|
||||
|
|
Loading…
Reference in New Issue