public class AsyncRequestReplyFunctionBuilder extends StatefulFunctionBuilder
Modifier and Type | Method and Description |
---|---|
AsyncRequestReplyFunctionBuilder |
withConnectionPoolMaxSize(int size)
The maximum connection pool size.
|
AsyncRequestReplyFunctionBuilder |
withConnectTimeout(java.time.Duration duration)
Set a timeout for connecting to function endpoints.
|
AsyncRequestReplyFunctionBuilder |
withMaxNumBatchRequests(int maxNumBatchRequests)
Sets the max messages to batch together for a specific address.
|
AsyncRequestReplyFunctionBuilder |
withMaxRequestDuration(java.time.Duration duration)
Set a maximum request duration.
|
AsyncRequestReplyFunctionBuilder |
withMaxRequestOrResponseSizeInBytes(int maxSizeInBytes)
The maximum size for a request or response payload.
|
AsyncRequestReplyFunctionBuilder |
withPooledConnectionTTL(java.time.Duration duration)
The amount of time a connection will live in the connection pool.
|
asyncRequestReplyFunctionBuilder, requestReplyFunctionBuilder
public AsyncRequestReplyFunctionBuilder withMaxRequestDuration(java.time.Duration duration)
duration
- the duration after which the request is considered failed.public AsyncRequestReplyFunctionBuilder withConnectTimeout(java.time.Duration duration)
duration
- the duration after which a connect attempt is considered failed.public AsyncRequestReplyFunctionBuilder withPooledConnectionTTL(java.time.Duration duration)
duration
- the duration after which a connection will be evicted from the pool.public AsyncRequestReplyFunctionBuilder withConnectionPoolMaxSize(int size)
size
- the max size of the connection pool.public AsyncRequestReplyFunctionBuilder withMaxRequestOrResponseSizeInBytes(int maxSizeInBytes)
maxSizeInBytes
- the max size of the request or response payload.public AsyncRequestReplyFunctionBuilder withMaxNumBatchRequests(int maxNumBatchRequests)
maxNumBatchRequests
- the maximum number of requests to batch for an address.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.