Package reactivefeign

Interface ReactiveFeignBuilder<T>

    • Method Detail

      • contract

        ReactiveFeignBuilder<T> contract​(feign.Contract contract)
        Sets contract. Provided contract will be wrapped in ReactiveContract
        Parameters:
        contract - contract.
        Returns:
        this builder
      • decode404

        ReactiveFeignBuilder<T> decode404()
        This flag indicates that the reactive feign client should process responses with 404 status, specifically returning empty Mono or Flux instead of throwing FeignException.

        This flag only works with 404, as opposed to all or arbitrary status codes. This was an explicit decision: 404 - empty is safe, common and doesn't complicate redirection, retry or fallback policy.

        Returns:
        this builder
      • objectMapper

        ReactiveFeignBuilder<T> objectMapper​(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
        The most common way to introduce custom json serialisation
        Parameters:
        objectMapper -
        Returns:
      • target

        default T target​(java.lang.Class<T> apiType,
                         java.lang.String url)
        Defines target and builds client.
        Parameters:
        apiType - API interface
        url - base URL
        Returns:
        built client
      • target

        default T target​(java.lang.Class<T> apiType,
                         java.lang.String name,
                         java.lang.String url)
      • target

        default T target​(feign.Target<T> target)
        Defines target and builds client.
        Parameters:
        target - target instance
        Returns:
        built client
      • contract

        feign.Contract contract()
      • invocationHandlerFactory

        default feign.InvocationHandlerFactory invocationHandlerFactory()