//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: private org.neo4j.causalclustering.core.consensus.log.RaftLogEntry readLogEntry(long logIndex) throws java.io.IOException private RaftLogEntry ReadLogEntry(long logIndex) { using (IOCursor <EntryRecord> cursor = new EntryCursor(_state.segments, logIndex)) { return(cursor.next() ? cursor.get().logEntry() : null); } }
public override RaftLogCursor GetEntryCursor(long fromIndex) { //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final org.neo4j.cursor.IOCursor<org.neo4j.causalclustering.core.consensus.log.EntryRecord> inner = new EntryCursor(state.segments, fromIndex); IOCursor <EntryRecord> inner = new EntryCursor(_state.segments, fromIndex); return(new SegmentedRaftLogCursor(fromIndex, inner)); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void ifFileExistsButEntryDoesNotExist() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void IfFileExistsButEntryDoesNotExist() { // When _segments.rotate(-1, -1, -1); _segments.rotate(10, 10, 10); _segments.last().closeWriter(); EntryCursor entryCursor = new EntryCursor(_segments, 1L); bool next = entryCursor.Next(); assertFalse(next); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void requestedSegmentHasNotExistedYet() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void RequestedSegmentHasNotExistedYet() { // When _segments.rotate(-1, -1, -1); _segments.rotate(10, 10, 10); _segments.rotate(20, 20, 20); _segments.last().closeWriter(); EntryCursor entryCursor = new EntryCursor(_segments, 100L); bool next = entryCursor.Next(); assertFalse(next); }