Interface SpringCloudConfigClient


@Client(value="${spring.cloud.config.uri:`http://localhost:8888`}", configuration=SpringCloudClientConfiguration.class) @Requires(beans=SpringCloudClientConfiguration.class) public interface SpringCloudConfigClient
A non-blocking HTTP client for Spring Cloud Config Client.
Since:
1.0
Author:
Thiago Locatelli
  • Field Details

  • Method Details

    • readValues

      @Get("/{applicationName}{/profiles}") @Produces(single=true) @Retryable(attempts="${spring.cloud.config.config.retry-count:3}", delay="${spring.cloud.config.config.retry-delay:1s}") org.reactivestreams.Publisher<ConfigServerResponse> readValues(@NonNull @NonNull String applicationName, @Nullable @Nullable String profiles)
      Reads an application configuration from Spring Config Server.
      Parameters:
      applicationName - The application name
      profiles - The active profiles
      Returns:
      A Publisher that emits a list of ConfigServerResponse
    • readValuesAuthorized

      @Get("/{applicationName}{/profiles}") @Produces(single=true) @Retryable(attempts="${spring.cloud.config.config.retry-count:3}", delay="${spring.cloud.config.config.retry-delay:1s}") org.reactivestreams.Publisher<ConfigServerResponse> readValuesAuthorized(@NonNull @NonNull String applicationName, @Nullable @Nullable String profiles, @Header String authorization)
      Reads an application configuration from Spring Config Server with authorization parameter.
      Parameters:
      applicationName - The application name
      profiles - The active profiles
      authorization - The Basic authorization header needed to authorize against the server
      Returns:
      A Publisher that emits a list of ConfigServerResponse
    • readValues

      @Get("/{applicationName}{/profiles}{/label}") @Produces(single=true) @Retryable(attempts="${spring.cloud.config.config.retry-count:3}", delay="${spring.cloud.config.config.retry-delay:1s}") org.reactivestreams.Publisher<ConfigServerResponse> readValues(@NonNull @NonNull String applicationName, @Nullable @Nullable String profiles, @Nullable @Nullable String label)
      Reads a versioned (#label) application configuration from Spring Config Server.
      Parameters:
      applicationName - The application name
      profiles - The active profiles
      label - The label
      Returns:
      A Publisher that emits a list of ConfigServerResponse
    • readValuesAuthorized

      @Get("/{applicationName}{/profiles}{/label}") @Produces(single=true) @Retryable(attempts="${spring.cloud.config.config.retry-count:3}", delay="${spring.cloud.config.config.retry-delay:1s}") org.reactivestreams.Publisher<ConfigServerResponse> readValuesAuthorized(@NonNull @NonNull String applicationName, @Nullable @Nullable String profiles, @Nullable @Nullable String label, @Header String authorization)
      Reads a versioned (#label) application configuration from Spring Config Server with authorization parameter.
      Parameters:
      applicationName - The application name
      profiles - The active profiles
      label - The label
      authorization - The Basic authorization header needed to authorize against the server
      Returns:
      A Publisher that emits a list of ConfigServerResponse