Package de.xima.fc.proma.context
Class PublicPromaInvokableCall<T,C extends de.xima.proma.restclient.pub.gen.ApiCall<?>>
- java.lang.Object
-
- de.xima.fc.proma.context.PublicPromaInvokableCall<T,C>
-
- 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 aPROMA API call
to a specific endpoint with an invocation builder for a particular configuration of that end point. Use byIPublicPromaCallInvoker.invoke(PublicPromaInvokableCall, Duration)
.- Since:
- 8.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
IPublicPromaCallInvoker
-
-
Constructor Summary
Constructors Constructor Description PublicPromaInvokableCall(C call, Function<? super C,? extends de.xima.proma.restclient.pub.gen.ApiInvocation<T>> invocationBuilder)
A new POJO with the given data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description C
call()
Function<? super C,? extends de.xima.proma.restclient.pub.gen.ApiInvocation<T>>
invocationBuilder()
-
-
-
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.
-
-