@Test public void getFreshTimestampShouldFail() { when(rawTimelockService.getFreshTimestamp()).thenReturn(1L); assertThrowsOnSecondCall(timelockService::getFreshTimestamp); }
@Override public long getFreshTimestamp() { return checkAndUpdateLowerBound(delegate::getFreshTimestamp, x -> x, x -> x, OperationType.TIMESTAMP); }
TimestampCorroboratingTimelockService implements AutoDelegate_TimelockService { @Override public long getFreshTimestamp() { return checkAndUpdateLowerBound(delegate::getFreshTimestamp, x -> x, x -> x, OperationType.TIMESTAMP); } }
TimestampCorroboratingTimelockService implements AutoDelegate_TimelockService { @Override public long getFreshTimestamp() { return checkAndUpdateLowerBound(delegate::getFreshTimestamp, x -> x, x -> x, OperationType.TIMESTAMP); } private  TimestampCorroboratingTimelockService(TimelockService delegate); }
TimestampCorroboratingTimelockService implements AutoDelegate_TimelockService { @Override public long getFreshTimestamp() { return checkAndUpdateLowerBound(delegate::getFreshTimestamp, x -> x, x -> x, OperationType.TIMESTAMP); } private  TimestampCorroboratingTimelockService(TimelockService delegate); static TimelockService create(TimelockService delegate); @Override TimelockService delegate(); @Override long getFreshTimestamp(); @Override TimestampRange getFreshTimestamps(int numTimestampsRequested); @Override List<StartIdentifiedAtlasDbTransactionResponse> startIdentifiedAtlasDbTransactionBatch(int count); }
TimestampCorroboratingTimelockService implements AutoDelegate_TimelockService { @Override public long getFreshTimestamp() { return checkAndUpdateLowerBound(delegate::getFreshTimestamp, x -> x, x -> x, OperationType.TIMESTAMP); } private  TimestampCorroboratingTimelockService(TimelockService delegate); static TimelockService create(TimelockService delegate); @Override TimelockService delegate(); @Override long getFreshTimestamp(); @Override TimestampRange getFreshTimestamps(int numTimestampsRequested); @Override List<StartIdentifiedAtlasDbTransactionResponse> startIdentifiedAtlasDbTransactionBatch(int count);  }