Package de.xima.fc.proma.context
Interface IPublicPromaInvocationContextBuilder<CONTEXT extends IPublicPromaInvocationContext,THIS extends IPublicPromaInvocationContextBuilder<CONTEXT,THIS>>
-
- Type Parameters:
CONTEXT
- Type of the context that the sub type can build.THIS
- Sub type of this builder.
- All Known Subinterfaces:
IPublicAsyncWebSocketContextBuilder
,IPublicNativeSyncContextBuilder
,IPublicSyncWebSocketContextBuilder
public interface IPublicPromaInvocationContextBuilder<CONTEXT extends IPublicPromaInvocationContext,THIS extends IPublicPromaInvocationContextBuilder<CONTEXT,THIS>>
A builder for a genericIPublicPromaInvocationContext
.- Since:
- 8.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description THIS
binaryTimeout(Duration binaryTimeout)
CONTEXT
build()
THIS
bundle(de.xima.proma.restclient.pub.gen.ApiBundle bundle)
THIS
combinedTimeout(Duration combinedTimeout)
THIS
entityContextFactory(Supplier<IEntityContext> entityContextFactory)
THIS
timeout(Duration timeout)
THIS
userContext(UserContext userContext)
-
-
-
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, seePromaManager
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.
-
-