* Starts the asynchronous flush queue.
*/
@Override
@Start
public void start() {
AsyncConfiguration asyncCfg = configuration.clustering().async();
long interval = asyncCfg.replQueueInterval();
trace = log.isTraceEnabled();
if (trace)
log.tracef("Starting replication queue, with interval %d and maxElements %s", interval, maxElements);
this.maxElements = asyncCfg.replQueueMaxElements();
// check again
enabled = asyncCfg.useReplQueue();
if (enabled && interval > 0) {
scheduledFuture = scheduledExecutor.scheduleWithFixedDelay(new Runnable() {
@Override
public void run() {
LogFactory.pushNDC(cacheName, trace);