Interface IPublicPromaInvocationContextBuilder<CONTEXT extends IPublicPromaInvocationContext,​THIS extends IPublicPromaInvocationContextBuilder<CONTEXT,​THIS>>

    • Method Detail

      • binaryTimeout

        THIS binaryTimeout​(Duration binaryTimeout)
        Parameters:
        binaryTimeout - Timeout for a single plain text request or "small" request which you do not expect to take a long time.
        Returns:
        This builder instance for chaining method calls.
      • build

        CONTEXT build()
        Returns:
        A new invocation context with the current settings. Further modifications to this builder will not be reflected in the returned instance.
      • bundle

        THIS bundle​(de.xima.proma.restclient.pub.gen.ApiBundle bundle)
        Parameters:
        bundle - The API bundle to use, see PromaManager for obtaining bundles.
        Returns:
        This builder instance for chaining method calls.
      • combinedTimeout

        THIS combinedTimeout​(Duration combinedTimeout)
        Parameters:
        combinedTimeout - Combined timeout for multiple plain text requests or "small" requests which you do not expect to take a long time.
        Returns:
        This builder instance for chaining method calls.
      • entityContextFactory

        THIS entityContextFactory​(Supplier<IEntityContext> entityContextFactory)
        Parameters:
        entityContextFactory - The factory to use for obtaining new entity contexts.
        Returns:
        This builder instance for chaining method calls.
      • timeout

        THIS timeout​(Duration timeout)
        Parameters:
        timeout - Timeout for binary requests or "large" requests such as downloads that you expect might take a long time.
        Returns:
        This builder instance for chaining method calls.
      • userContext

        THIS userContext​(UserContext userContext)
        Parameters:
        userContext - User context of the user who initiated the PROMA request.
        Returns:
        This builder instance for chaining method calls.