use of com.palantir.atlasdb.keyvalue.dbkvs.impl.ConnectionManagerAwareDbKvs in project atlasdb by palantir.
the class DbAtlasDbFactory method createTimestampService.
@Override
public TimestampService createTimestampService(KeyValueService rawKvs, Optional<TableReference> timestampTable, boolean initializeAsync) {
if (initializeAsync) {
log.warn("Asynchronous initialization not implemented, will initialize synchronousy.");
}
Preconditions.checkArgument(rawKvs instanceof ConnectionManagerAwareDbKvs, "DbAtlasDbFactory expects a raw kvs of type ConnectionManagerAwareDbKvs, found %s", rawKvs.getClass());
ConnectionManagerAwareDbKvs dbkvs = (ConnectionManagerAwareDbKvs) rawKvs;
return PersistentTimestampServiceImpl.create(createTimestampBoundStore(timestampTable, dbkvs));
}
Aggregations