use of com.palantir.timestamp.TimestampBoundStore in project atlasdb by palantir.
the class CassandraTimestampStoreInvalidatorIntegrationTest method assertWeCanReadTimestamp.
private void assertWeCanReadTimestamp(long expectedTimestamp) {
TimestampBoundStore timestampBoundStore = CassandraTimestampBoundStore.create(kv);
assertThat(timestampBoundStore.getUpperLimit()).isEqualTo(expectedTimestamp);
}
use of com.palantir.timestamp.TimestampBoundStore in project atlasdb by palantir.
the class CassandraTimestampStoreInvalidatorIntegrationTest method getBoundAfterTakingOutOneMillionTimestamps.
private long getBoundAfterTakingOutOneMillionTimestamps() {
TimestampBoundStore timestampBoundStore = CassandraTimestampBoundStore.create(kv);
long newLimit = timestampBoundStore.getUpperLimit() + ONE_MILLION;
timestampBoundStore.storeUpperLimit(newLimit);
return newLimit;
}
Aggregations