public OutputWireRecord scanForwards(VLSN vlsn, int waitTime)
throws InterruptedException {
assert initDone;
LogItem logItem = null;
try {
logItem = vlsnIndex.waitForVLSN(vlsn, waitTime);
} catch (WaitTimeOutException e) {
/* This vlsn not yet available */
return null;
}
currentVLSN = vlsn;
if ((logItem != null) && (!bypassCache)) {
/* We've found the requested log item in the cache. */
assert logItem.getHeader().getVLSN().equals(vlsn);
prevCacheHits++;
return new OutputWireRecord(logItem);
}
/*