@Test public void canGetGreatestLogEntry() { writeValueForRound(15L); writeValueForRound(19L); writeValueForRound(17L); assertThat(stateLog.getGreatestLogEntry()).isEqualTo(19L); }
@Override public long getGreatestLogEntry() { return execute(dao -> dao.getGreatestLogEntry(namespace, useCase)).orElse(PaxosAcceptor.NO_LOG_ENTRY); }
SqlitePaxosStateLog implements PaxosStateLog<V> { @Override public long getGreatestLogEntry() { return execute(dao -> dao.getGreatestLogEntry(namespace, useCase)).orElse(PaxosAcceptor.NO_LOG_ENTRY); } }
SqlitePaxosStateLog implements PaxosStateLog<V> { @Override public long getGreatestLogEntry() { return execute(dao -> dao.getGreatestLogEntry(namespace, useCase)).orElse(PaxosAcceptor.NO_LOG_ENTRY); } private  SqlitePaxosStateLog(NamespaceAndUseCase namespaceAndUseCase, Jdbi jdbi); }
SqlitePaxosStateLog implements PaxosStateLog<V> { @Override public long getGreatestLogEntry() { return execute(dao -> dao.getGreatestLogEntry(namespace, useCase)).orElse(PaxosAcceptor.NO_LOG_ENTRY); } private  SqlitePaxosStateLog(NamespaceAndUseCase namespaceAndUseCase, Jdbi jdbi); static PaxosStateLog<V> create(
            NamespaceAndUseCase namespaceAndUseCase,
            DataSource dataSource); @Override void writeRound(long seq, V round); @Override void writeBatchOfRounds(Iterable<PaxosRound<V>> rounds); @Override byte[] readRound(long seq); @Override long getLeastLogEntry(); @Override long getGreatestLogEntry(); @Override void truncate(long toDeleteInclusive); }
SqlitePaxosStateLog implements PaxosStateLog<V> { @Override public long getGreatestLogEntry() { return execute(dao -> dao.getGreatestLogEntry(namespace, useCase)).orElse(PaxosAcceptor.NO_LOG_ENTRY); } private  SqlitePaxosStateLog(NamespaceAndUseCase namespaceAndUseCase, Jdbi jdbi); static PaxosStateLog<V> create(
            NamespaceAndUseCase namespaceAndUseCase,
            DataSource dataSource); @Override void writeRound(long seq, V round); @Override void writeBatchOfRounds(Iterable<PaxosRound<V>> rounds); @Override byte[] readRound(long seq); @Override long getLeastLogEntry(); @Override long getGreatestLogEntry(); @Override void truncate(long toDeleteInclusive);  }