This commit is contained in:
Clebert Suconic 2017-05-31 11:42:10 -04:00
commit 567b0741cc
1 changed files with 6 additions and 6 deletions

View File

@ -340,14 +340,14 @@ public class NettyAcceptor extends AbstractAcceptor {
notificationService.sendNotification(notification); notificationService.sendNotification(notification);
} }
if (batchDelay > 0) {
flusher = new BatchFlusher();
batchFlusherFuture = scheduledThreadPool.scheduleWithFixedDelay(flusher, batchDelay, batchDelay, TimeUnit.MILLISECONDS);
}
ActiveMQServerLogger.LOGGER.startedAcceptor(host, port, protocolsString); ActiveMQServerLogger.LOGGER.startedAcceptor(host, port, protocolsString);
} }
if (batchDelay > 0) {
flusher = new BatchFlusher();
batchFlusherFuture = scheduledThreadPool.scheduleWithFixedDelay(flusher, batchDelay, batchDelay, TimeUnit.MILLISECONDS);
}
} }
@Override @Override