use of com.palantir.lock.client.CommitTimestampGetter in project atlasdb by palantir.
the class InMemoryTimelockServices method getLegacyTimelockService.
public TimelockService getLegacyTimelockService() {
RequestBatchersFactory requestBatchersFactory = helperServices.requestBatchersFactory();
TransactionStarter transactionStarter = TransactionStarter.create(lockLeaseService, requestBatchersFactory);
CommitTimestampGetter commitTimestampGetter = requestBatchersFactory.createBatchingCommitTimestampGetter(lockLeaseService);
NamespacedTimelockRpcClient namespacedTimelockRpcClient = new InMemoryNamespacedTimelockRpcClient(getTimelockService());
return new RemoteTimelockServiceAdapter(namespacedTimelockRpcClient, namespacedConjureTimelockService, lockLeaseService, transactionStarter, commitTimestampGetter);
}
Aggregations