mirror of https://github.com/apache/activemq.git
first cut of resolution to https://issues.apache.org/activemq/browse/AMQ-2470 - put cleanup on a fixe rate schedual
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@831008 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c3881bf4f7
commit
d2a9f7dba2
|
@ -215,7 +215,7 @@ public class JDBCPersistenceAdapter extends DataSourceSupport implements Persist
|
|||
|
||||
// Cleanup the db periodically.
|
||||
if (cleanupPeriod > 0) {
|
||||
cleanupTicket = getScheduledThreadPoolExecutor().scheduleAtFixedRate(new Runnable() {
|
||||
cleanupTicket = getScheduledThreadPoolExecutor().scheduleWithFixedDelay(new Runnable() {
|
||||
public void run() {
|
||||
cleanup();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue