Annotation Type Async
An annotation for marking asynchronous health check execution.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum representing the initial health states.static enumEnum representing the possible schedule types. -
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionlongHow long a healthy result is considered valid before being ignored.longInitial delay of first execution.Initial health state until first asynchronous execution completes.Scheduling type of asynchronous executions.Time unit of initial delay, period and healthyTtl.
-
Element Details
-
period
long periodPeriod between executions.- Returns:
- period
-
-
-
scheduleType
Async.ScheduleType scheduleTypeScheduling type of asynchronous executions.- Returns:
- schedule type
- Default:
- FIXED_RATE
-
initialDelay
long initialDelayInitial delay of first execution.- Returns:
- initial delay
- Default:
- 0L
-
unit
TimeUnit unitTime unit of initial delay, period and healthyTtl.- Returns:
- time unit
- Default:
- SECONDS
-
initialState
Async.InitialState initialStateInitial health state until first asynchronous execution completes.- Returns:
- initial health state
- Default:
- HEALTHY
-
healthyTtl
long healthyTtlHow long a healthy result is considered valid before being ignored. Handles cases where the asynchronous healthcheck did not run (for example thread starvation). Defaults to 2 * period- Returns:
- healthy result time to live
- Default:
- -1L
-