Package io.dapr.internal.resiliency
Class TimeoutPolicy
java.lang.Object
io.dapr.internal.resiliency.TimeoutPolicy
Timeout policy for SDK communication to Dapr API.
-
Constructor Summary
ConstructorDescriptionInstantiates a new timeout policy with default value.TimeoutPolicy
(Duration timeout) Instantiates a new timeout policy with override value. -
Method Summary
Modifier and TypeMethodDescriptionio.grpc.CallOptions
apply
(io.grpc.CallOptions options) Applies the timeout policy to a gRPC call options.
-
Constructor Details
-
TimeoutPolicy
Instantiates a new timeout policy with override value.- Parameters:
timeout
- Override timeout value.
-
TimeoutPolicy
public TimeoutPolicy()Instantiates a new timeout policy with default value.
-
-
Method Details
-
apply
public io.grpc.CallOptions apply(io.grpc.CallOptions options) Applies the timeout policy to a gRPC call options.- Parameters:
options
- Call options- Returns:
- Call options with retry policy applied
-