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:
Gary Tully 2009-10-29 16:10:36 +00:00
parent c3881bf4f7
commit d2a9f7dba2
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}