Search in sources :

Example 1 with TimeLockResource

use of com.palantir.atlasdb.timelock.TimeLockResource in project atlasdb by palantir.

the class TimeLockAgent method createAndRegisterResources.

private void createAndRegisterResources() {
    registerPaxosResource();
    registerExceptionMappers();
    leadershipCreator.registerLeaderElectionService();
    // Finally, register the health check, and endpoints associated with the clients.
    healthCheckSupplier = leadershipCreator.getHealthCheck();
    resource = new TimeLockResource(this::createInvalidatingTimeLockServices, JavaSuppliers.compose(TimeLockRuntimeConfiguration::maxNumberOfClients, runtime));
    registrar.accept(resource);
    ClockSkewMonitorCreator.create(install, registrar).registerClockServices();
}
Also used : TimeLockRuntimeConfiguration(com.palantir.timelock.config.TimeLockRuntimeConfiguration) TimeLockResource(com.palantir.atlasdb.timelock.TimeLockResource)

Aggregations

TimeLockResource (com.palantir.atlasdb.timelock.TimeLockResource)1 TimeLockRuntimeConfiguration (com.palantir.timelock.config.TimeLockRuntimeConfiguration)1