Package io.dapr.client
Class DaprHttpBuilder
java.lang.Object
io.dapr.client.DaprHttpBuilder
public class DaprHttpBuilder extends Object
A builder for the DaprHttp.
-
Constructor Summary
Constructors Constructor Description DaprHttpBuilder()
-
Method Summary
Modifier and Type Method Description DaprHttp
build()
Build an instance of the Http client based on the provided setup.DaprHttpBuilder
withReadTimeout(Duration duration)
Deprecated.
-
Constructor Details
-
DaprHttpBuilder
public DaprHttpBuilder()
-
-
Method Details
-
withReadTimeout
Deprecated.Sets the read timeout duration for the instance to be built.Instead, set environment variable "DAPR_HTTP_CLIENT_READTIMEOUTSECONDS", or system property "dapr.http.client.readtimeoutseconds".
- Parameters:
duration
- Read timeout duration.- Returns:
- Same builder instance.
-
build
Build an instance of the Http client based on the provided setup.- Returns:
- an instance of
DaprHttp
- Throws:
IllegalStateException
- if any required field is missing
-