This commit is contained in:
Clebert Suconic 2017-05-30 19:05:44 -04:00
commit 335381d195

View File

@ -380,14 +380,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(acceptorType, host, port, protocolsString); ActiveMQServerLogger.LOGGER.startedAcceptor(acceptorType, host, port, protocolsString);
} }
if (batchDelay > 0) {
flusher = new BatchFlusher();
batchFlusherFuture = scheduledThreadPool.scheduleWithFixedDelay(flusher, batchDelay, batchDelay, TimeUnit.MILLISECONDS);
}
} }
@Override @Override