Search in sources :

Example 1 with ConnectionManagerAwareDbKvs

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));
}
Also used : ConnectionManagerAwareDbKvs(com.palantir.atlasdb.keyvalue.dbkvs.impl.ConnectionManagerAwareDbKvs)

Aggregations

ConnectionManagerAwareDbKvs (com.palantir.atlasdb.keyvalue.dbkvs.impl.ConnectionManagerAwareDbKvs)1