Interface ConjureClients.ReloadingClientFactory

Enclosing class:
ConjureClients

public static interface ConjureClients.ReloadingClientFactory
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    get(Class<T> clientInterface, String serviceName)
    Construct an instance of the clientInterface parameter which can be used to make network calls to the service identified by serviceName in the given ServicesConfigBlock.
  • Method Details

    • get

      <T> T get(Class<T> clientInterface, String serviceName)
      Construct an instance of the clientInterface parameter which can be used to make network calls to the service identified by serviceName in the given ServicesConfigBlock. This client is expected to live-reload when the given Refreshable changes, so changes to URIs or other config should happen transparently. Implementations of this interface may or may not cache client instances internally.