use of com.palantir.atlasdb.factory.AtlasDbDialogueServiceProvider in project atlasdb by palantir.
the class AtlasDbEteServer method getRemoteTimeLockManagementService.
private TimeLockManagementService getRemoteTimeLockManagementService(Refreshable<ServerListConfig> serverListConfig, TaggedMetricRegistry taggedMetrics) {
UserAgent userAgent = UserAgent.of(AtlasDbRemotingConstants.ATLASDB_HTTP_CLIENT_AGENT);
DialogueClients.ReloadingFactory reloadingFactory = DialogueClients.create(Refreshable.only(ServicesConfigBlock.builder().build())).withUserAgent(userAgent);
AtlasDbDialogueServiceProvider dialogueServiceProvider = AtlasDbDialogueServiceProvider.create(serverListConfig, reloadingFactory, userAgent, taggedMetrics);
return dialogueServiceProvider.getTimeLockManagementService();
}
Aggregations