private void addDocToTimedOutDocs(int aLifespan, String aDocId) {
// The expected chunk sequence did not arrive within given window. Create a timer
// object and associate it with the document that has timed out. Add the timer object
// to the cache of timedout documents. The timer expires in 5000 (hardcoded!) ms and
// will delete the document Id from the cache of timed out documents.
ExpirationTimer eTimer = new ExpirationTimer(aLifespan, timedOutDocs, aDocId, cpm);
synchronized (timedOutDocs) {
timedOutDocs.put(aDocId, aDocId);
}
eTimer.start();
}