public class RequestReplyFunctionBuilder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static RequestReplyFunctionBuilder |
requestReplyFunctionBuilder(FunctionType functionType,
java.net.URI endpoint)
Create a new builder for a remote function with a given type and an endpoint.
|
RequestReplyFunctionBuilder |
withConnectTimeout(java.time.Duration duration)
Set a timeout for connecting to function endpoints.
|
RequestReplyFunctionBuilder |
withMaxNumBatchRequests(int maxNumBatchRequests)
Sets the max messages to batch together for a specific address.
|
RequestReplyFunctionBuilder |
withMaxRequestDuration(java.time.Duration duration)
Set a maximum request duration.
|
RequestReplyFunctionBuilder |
withReadTimeout(java.time.Duration duration)
Set a timeout for individual read IO operations during a function invocation request.
|
RequestReplyFunctionBuilder |
withWriteTimeout(java.time.Duration duration)
Set a timeout for individual write IO operations during a function invocation request.
|
public static RequestReplyFunctionBuilder requestReplyFunctionBuilder(FunctionType functionType, java.net.URI endpoint)
functionType
- the function type that is served remotely.endpoint
- the endpoint that serves that remote function.public RequestReplyFunctionBuilder withMaxRequestDuration(java.time.Duration duration)
duration
- the duration after which the request is considered failed.public RequestReplyFunctionBuilder withConnectTimeout(java.time.Duration duration)
duration
- the duration after which a connect attempt is considered failed.public RequestReplyFunctionBuilder withReadTimeout(java.time.Duration duration)
duration
- the duration after which a read IO operation is considered failed.public RequestReplyFunctionBuilder withWriteTimeout(java.time.Duration duration)
duration
- the duration after which a write IO operation is considered failed.public RequestReplyFunctionBuilder withMaxNumBatchRequests(int maxNumBatchRequests)
maxNumBatchRequests
- the maximum number of requests to batch for an address.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.