use of com.palantir.atlasdb.config.AuxiliaryRemotingParameters in project atlasdb by palantir.
the class TestProxies method singleNode.
public <T> T singleNode(TimeLockServerHolder server, Class<T> serviceInterface, boolean shouldRetry, ProxyMode proxyMode) {
String uri = getServerUri(server, proxyMode);
List<Object> key = ImmutableList.of(serviceInterface, uri, "single", proxyMode);
AuxiliaryRemotingParameters parameters = shouldRetry ? TestProxyUtils.AUXILIARY_REMOTING_PARAMETERS_RETRYING : TestProxyUtils.AUXILIARY_REMOTING_PARAMETERS_NO_RETRYING;
return (T) proxies.computeIfAbsent(key, ignored -> AtlasDbHttpClients.createProxy(Optional.of(TRUST_CONTEXT), uri, serviceInterface, parameters));
}
Aggregations