Class MultiEndpoint.Builder
java.lang.Object
com.google.cloud.grpc.multiendpoint.MultiEndpoint.Builder
- Enclosing class:
- MultiEndpoint
Builder for MultiEndpoint.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()withRecoveryTimeout(Duration timeout) MultiEndpoint will keep the current endpoint for up to recovery timeout after it became unavailable to give it some time to recover.withSwitchingDelay(Duration delay) MultiEndpoint will delay switching from an available endpoint to another endpoint for this amount of time.
-
Constructor Details
-
Builder
-
-
Method Details
-
withRecoveryTimeout
MultiEndpoint will keep the current endpoint for up to recovery timeout after it became unavailable to give it some time to recover. -
withSwitchingDelay
MultiEndpoint will delay switching from an available endpoint to another endpoint for this amount of time. -
build
-