Search in sources :

Example 1 with LegacyLeaderTimeGetter

use of com.palantir.lock.client.LegacyLeaderTimeGetter in project atlasdb by palantir.

the class InMemoryTimelockServices method createHelperServices.

private void createHelperServices(MetricsManager metricsManager) {
    helperServices = TimeLockHelperServices.create(client, metricsManager, ImmutableSet.of(), delegate.getTimelockService(), LockWatchCachingConfig.builder().build(), Optional::empty);
    RedirectRetryTargeter redirectRetryTargeter = timeLockAgent.redirectRetryTargeter();
    ConjureTimelockService conjureTimelockService = ConjureTimelockResource.jersey(redirectRetryTargeter, _unused -> delegate.getTimelockService());
    namespacedConjureTimelockService = new NamespacedConjureTimelockServiceImpl(conjureTimelockService, client);
    lockLeaseService = LockLeaseService.create(namespacedConjureTimelockService, new LegacyLeaderTimeGetter(namespacedConjureTimelockService));
}
Also used : NamespacedConjureTimelockServiceImpl(com.palantir.lock.client.NamespacedConjureTimelockServiceImpl) LegacyLeaderTimeGetter(com.palantir.lock.client.LegacyLeaderTimeGetter) ConjureTimelockService(com.palantir.atlasdb.timelock.api.ConjureTimelockService) RedirectRetryTargeter(com.palantir.atlasdb.http.RedirectRetryTargeter)

Aggregations

RedirectRetryTargeter (com.palantir.atlasdb.http.RedirectRetryTargeter)1 ConjureTimelockService (com.palantir.atlasdb.timelock.api.ConjureTimelockService)1 LegacyLeaderTimeGetter (com.palantir.lock.client.LegacyLeaderTimeGetter)1 NamespacedConjureTimelockServiceImpl (com.palantir.lock.client.NamespacedConjureTimelockServiceImpl)1