store.store(correlationId, aggregation);
if (timeout != null) {
if (LOG.isDebugEnabled()) {
LOG.debug("Scheduling timeout at " + timeout + " for aggregate " + correlationId);
}
Timer t = getTimerManager().schedule(new TimerListener() {
public void timerExpired(Timer timer) {
AbstractAggregator.this.onTimeout(processCorrelationId, correlationId, timer);
}
}, timeout);
timers.put(correlationId, t);