Class PublicPromaInvokableCall<T,​C extends de.xima.proma.restclient.pub.gen.ApiCall<?>>

  • Type Parameters:
    T - Type of the result returned by the PROMA API call.
    C - Type of the PROMA API call.

    public final class PublicPromaInvokableCall<T,​C extends de.xima.proma.restclient.pub.gen.ApiCall<?>>
    extends Object
    Simple POJO that combines a PROMA API call to a specific endpoint with an invocation builder for a particular configuration of that end point. Use by IPublicPromaCallInvoker.invoke(PublicPromaInvokableCall, Duration).
    Since:
    8.0.0
    Author:
    XIMA MEDIA GmbH
    See Also:
    IPublicPromaCallInvoker
    • Constructor Detail

      • PublicPromaInvokableCall

        public PublicPromaInvokableCall​(C call,
                                        Function<? super C,​? extends de.xima.proma.restclient.pub.gen.ApiInvocation<T>> invocationBuilder)
        A new POJO with the given data.
        Parameters:
        call - The PROMA API call to execute.
        invocationBuilder - A builder that creates an invocation with a specific configuration from an API call.
    • Method Detail

      • call

        public C call()
        Returns:
        The PROMA API call to execute.
      • invocationBuilder

        public Function<? super C,​? extends de.xima.proma.restclient.pub.gen.ApiInvocation<T>> invocationBuilder()
        Returns:
        A builder that creates an invocation with a specific configuration from an API call.