T - the builder type (for fluent API)C - the config type being builtpublic static class HealthCheckStrategy.Config.Builder<T extends HealthCheckStrategy.Config.Builder<T,C>,C extends HealthCheckStrategy.Config>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
delayInBetweenProbes |
protected int |
interval |
protected int |
numProbes |
protected ProbingPolicy |
policy |
protected int |
timeout |
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
C |
build()
Build the Config instance.
|
T |
delayInBetweenProbes(int delayInBetweenProbes)
Set the delay between retries for failed health checks in milliseconds.
|
T |
interval(int interval)
Set the interval between health checks in milliseconds.
|
T |
numProbes(int numProbes)
Set the number of probes for health check.
|
T |
policy(ProbingPolicy policy)
Set the policy for health checks.
|
T |
timeout(int timeout)
Set the timeout for health checks in milliseconds.
|
protected int interval
protected int timeout
protected int numProbes
protected ProbingPolicy policy
protected int delayInBetweenProbes
public T interval(int interval)
interval - the interval in milliseconds (default: 1000)public T timeout(int timeout)
timeout - the timeout in milliseconds (default: 1000)public T numProbes(int numProbes)
numProbes - the number of repeats (default: 3)public T policy(ProbingPolicy policy)
policy - the policy (default: ProbingPolicy.BuiltIn.ALL_SUCCESS)public T delayInBetweenProbes(int delayInBetweenProbes)
delayInBetweenProbes - the delay in milliseconds (default: 100)public C build()
Copyright © 2025. All rights reserved.