Interface StatelessBuilderAPI.Builder<P>

  • Type Parameters:
    P - the type of service proxies
    All Known Implementing Classes:
    AbstractStatelessBuilder
    Enclosing class:
    StatelessBuilderAPI

    public static interface StatelessBuilderAPI.Builder<P>
    The first clause of the DSL.
    Author:
    Fabio Simeoni
    • Method Detail

      • withTimeout

        StatelessBuilderAPI.FinalClause<P> withTimeout​(int timeoutDuration,
                                                       TimeUnit timeoutUnit)
        Configures the timeout for the proxy.
        Parameters:
        timeoutDuration - the duration of the timeout
        timeoutUnit - the time unit of the timeout
        Returns:
        further configuration options
      • with

        <T> StatelessBuilderAPI.Builder<P> with​(String name,
                                                T value)
        Set a configuration property for the proxy.
        Type Parameters:
        T - the type of the property value
        Parameters:
        name - the name of the property
        value - the value of the property
        Returns:
        further configuration options
      • with

        StatelessBuilderAPI.Builder<P> with​(Property<?> property)
        Set a configuration property for the proxy.
        Parameters:
        name - the property
        Returns:
        further configuration options
      • build

        P build()
        Configures the timeout for the proxy.
        Parameters:
        timeoutDuration - the duration of the timeout
        timeoutUnit - the time unit of the timeout
        Returns:
        further configuration options