Interface ProxyConfig<A,​S>

  • Type Parameters:
    A - the type of service addresses
    S - the type of service stubs
    All Known Implementing Classes:
    AbstractConfig, DiscoveryConfig, EndpointConfig

    public interface ProxyConfig<A,​S>
    The configuration of service proxies.
    Author:
    Fabio Simeoni
    • Method Detail

      • timeout

        long timeout()
        Returns the timeout.
        Returns:
        the timeout
      • addProperty

        <T> void addProperty​(String name,
                             T value)
        Adds a custom property to the configuration.
        Type Parameters:
        T - the type of the property value
        Parameters:
        name - the name of the property
        value - the value of the property
      • addProperty

        void addProperty​(Property<?> property)
        Adds a custom property to the configuration.
        Parameters:
        property - the property
      • hasProperty

        boolean hasProperty​(String property)
        Returns true if the configuration includes a given custom property.
        Parameters:
        property - the name of the property
        Returns: