@Test public void serviceConfigBlockGeneration() { ServicesConfigBlock servicesConfigBlock = DialogueClientOptions.toServicesConfigBlock( ImmutableMap.of(SERVICE_NAME, REMOTE_SERVICE_CONFIGURATION_EXTENDED_TIMEOUT)); assertThat(servicesConfigBlock.services()).containsOnlyKeys(SERVICE_NAME); PartialServiceConfiguration partialServiceConfiguration = servicesConfigBlock.services().get(SERVICE_NAME); assertThat(partialServiceConfiguration.uris()).hasSameElementsAs(SERVERS); assertThat(partialServiceConfiguration.security()).contains(SSL_CONFIGURATION); assertThat(partialServiceConfiguration.proxyConfiguration()).isEmpty(); assertThat(partialServiceConfiguration.backoffSlotSize()) .contains(ClientOptionsConstants.STANDARD_BACKOFF_SLOT_SIZE); assertThat(partialServiceConfiguration.connectTimeout()).contains(ClientOptionsConstants.CONNECT_TIMEOUT); assertThat(partialServiceConfiguration.maxNumRetries()).contains(ClientOptionsConstants.STANDARD_MAX_RETRIES); assertThat(partialServiceConfiguration.readTimeout()).contains(ClientOptionsConstants.LONG_READ_TIMEOUT); }
public static ServicesConfigBlock toServicesConfigBlock( Map<String, RemoteServiceConfiguration> serviceNameToRemoteConfiguration) { Map<String, PartialServiceConfiguration> configMap = KeyedStream.stream(serviceNameToRemoteConfiguration) .map(remoteServiceConfiguration -> toPartialServiceConfiguration( remoteServiceConfiguration.serverList(), remoteServiceConfiguration.remotingParameters())) .collectToMap(); return ServicesConfigBlock.builder().putAllServices(configMap).build(); }
DialogueClientOptions { public static ServicesConfigBlock toServicesConfigBlock( Map<String, RemoteServiceConfiguration> serviceNameToRemoteConfiguration) { Map<String, PartialServiceConfiguration> configMap = KeyedStream.stream(serviceNameToRemoteConfiguration) .map(remoteServiceConfiguration -> toPartialServiceConfiguration( remoteServiceConfiguration.serverList(), remoteServiceConfiguration.remotingParameters())) .collectToMap(); return ServicesConfigBlock.builder().putAllServices(configMap).build(); } }
DialogueClientOptions { public static ServicesConfigBlock toServicesConfigBlock( Map<String, RemoteServiceConfiguration> serviceNameToRemoteConfiguration) { Map<String, PartialServiceConfiguration> configMap = KeyedStream.stream(serviceNameToRemoteConfiguration) .map(remoteServiceConfiguration -> toPartialServiceConfiguration( remoteServiceConfiguration.serverList(), remoteServiceConfiguration.remotingParameters())) .collectToMap(); return ServicesConfigBlock.builder().putAllServices(configMap).build(); } private  DialogueClientOptions(); }
DialogueClientOptions { public static ServicesConfigBlock toServicesConfigBlock( Map<String, RemoteServiceConfiguration> serviceNameToRemoteConfiguration) { Map<String, PartialServiceConfiguration> configMap = KeyedStream.stream(serviceNameToRemoteConfiguration) .map(remoteServiceConfiguration -> toPartialServiceConfiguration( remoteServiceConfiguration.serverList(), remoteServiceConfiguration.remotingParameters())) .collectToMap(); return ServicesConfigBlock.builder().putAllServices(configMap).build(); } private  DialogueClientOptions(); static ServicesConfigBlock toServicesConfigBlock(
            Map<String, RemoteServiceConfiguration> serviceNameToRemoteConfiguration); }
DialogueClientOptions { public static ServicesConfigBlock toServicesConfigBlock( Map<String, RemoteServiceConfiguration> serviceNameToRemoteConfiguration) { Map<String, PartialServiceConfiguration> configMap = KeyedStream.stream(serviceNameToRemoteConfiguration) .map(remoteServiceConfiguration -> toPartialServiceConfiguration( remoteServiceConfiguration.serverList(), remoteServiceConfiguration.remotingParameters())) .collectToMap(); return ServicesConfigBlock.builder().putAllServices(configMap).build(); } private  DialogueClientOptions(); static ServicesConfigBlock toServicesConfigBlock(
            Map<String, RemoteServiceConfiguration> serviceNameToRemoteConfiguration);  }