public static PersistentTimestampService create(TimestampBoundStore store) { return create(new ErrorCheckingTimestampBoundStore(store), AtlasDbConstants.DEFAULT_INITIALIZE_ASYNC); }
private void tryInitialize() { long latestTimestamp = store.getUpperLimit(); PersistentUpperLimit upperLimit = new PersistentUpperLimit(store); timestamp = new PersistentTimestamp(upperLimit, latestTimestamp); }
@Override public synchronized void storeUpperLimit(long limit) { failures.verifyWeShouldIssueMoreTimestamps(); throwIfInterrupted(); try { delegate.storeUpperLimit(limit); } catch (Throwable t) { throw failures.responseTo(t); } }
public static PersistentTimestampService create(TimestampBoundStore store, boolean initializeAsync) { return create(new ErrorCheckingTimestampBoundStore(store), initializeAsync); }
@Override public synchronized void storeUpperLimit(long limit) { failures.verifyWeShouldIssueMoreTimestamps(); throwIfInterrupted(); try { delegate.storeUpperLimit(limit); } catch (Throwable t) { throw failures.responseTo(t); } }
private void tryInitialize() { long latestTimestamp = store.getUpperLimit(); PersistentUpperLimit upperLimit = new PersistentUpperLimit(store); timestamp = new PersistentTimestamp(upperLimit, latestTimestamp); }
public static PersistentTimestampService create(TimestampBoundStore store, boolean initializeAsync) { return create(new ErrorCheckingTimestampBoundStore(store), initializeAsync); }
public static PersistentTimestampService create(TimestampBoundStore store) { return create(new ErrorCheckingTimestampBoundStore(store), AtlasDbConstants.DEFAULT_INITIALIZE_ASYNC); }