{
int flushCount = flushTracker.getFlushCompletionCount();
flushTracker.lockProcessingLock();
unlock = true;
flushTracker.waitForFlushCompletion(configuration.getStateRetrievalTimeout());
// If this thread blocked during a NBST flush, then inform the sender
// it needs to replay ignored messages
replayIgnored = flushTracker.getFlushCompletionCount() != flushCount;
}