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();
}
Aggregations