Search in sources :

Example 1 with AtlasDbDialogueServiceProvider

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();
}
Also used : AtlasDbDialogueServiceProvider(com.palantir.atlasdb.factory.AtlasDbDialogueServiceProvider) UserAgent(com.palantir.conjure.java.api.config.service.UserAgent) DialogueClients(com.palantir.dialogue.clients.DialogueClients)

Aggregations

AtlasDbDialogueServiceProvider (com.palantir.atlasdb.factory.AtlasDbDialogueServiceProvider)1 UserAgent (com.palantir.conjure.java.api.config.service.UserAgent)1 DialogueClients (com.palantir.dialogue.clients.DialogueClients)1