public PhysicalTransactionCursor( T channel, LogEntryReader<T> entryReader ) throws IOException { this.channel = channel; channel.getCurrentPosition( lastGoodPositionMarker ); this.logEntryCursor = new LogEntryCursor( (LogEntryReader<ReadableClosablePositionAwareChannel>) entryReader, channel ); }
/** * Reading {@link LogEntry log entries} may have the source move over physically multiple log files. * This accessor returns the log version of the most recent call to {@link #next()}. * * @return the log version of the most recent {@link LogEntry} returned from {@link #next(). */ public long getCurrentLogVersion() throws IOException { channel.getCurrentPosition( position ); return position.getLogVersion(); } }
channel.getCurrentPosition( lastGoodPositionMarker ); continue; startEntry.getLastCommittedTxWhenTransactionStarted(), commitEntry.getTimeWritten(), -1 ); current = new CommittedTransactionRepresentation( startEntry, transaction, commitEntry ); channel.getCurrentPosition( lastGoodPositionMarker ); return true;
while ( true ) channel.getCurrentPosition( positionMarker );
/** * Reading {@link LogEntry log entries} may have the source move over physically multiple log files. * This accessor returns the log version of the most recent call to {@link #next()}. * * @return the log version of the most recent {@link LogEntry} returned from {@link #next(). */ public long getCurrentLogVersion() throws IOException { channel.getCurrentPosition( position ); return position.getLogVersion(); } }
public PhysicalTransactionCursor( T channel, LogEntryReader<T> entryReader ) throws IOException { this.channel = channel; channel.getCurrentPosition( lastGoodPositionMarker ); this.logEntryCursor = new LogEntryCursor( (LogEntryReader<ReadableClosablePositionAwareChannel>) entryReader, channel ); }
channel.getCurrentPosition( lastGoodPositionMarker ); continue; startEntry.getLastCommittedTxWhenTransactionStarted(), commitEntry.getTimeWritten(), -1 ); current = new CommittedTransactionRepresentation( startEntry, transaction, commitEntry ); channel.getCurrentPosition( lastGoodPositionMarker ); return true;
while ( true ) channel.getCurrentPosition( positionMarker );