ApplicationAvailabilityBean class

The ApplicationAvailability bean: it listens to every AvailabilityChangeEvent and keeps the last one of each kind of state.

spring_boot_dart declares it as the applicationAvailability bean unless the application has its own ApplicationAvailability.

Spring Boot (Java): ApplicationAvailabilityBean, declared by ApplicationAvailabilityAutoConfiguration.

Implemented types

Properties

hashCode → int
The hash code for this object.
no setterinherited
livenessState → LivenessState
The last LivenessState published; LivenessState.broken before the first.
no setteroverride
readinessState → ReadinessState
The last ReadinessState published; ReadinessState.refusingTraffic before the first.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

getLastChangeEvent<S extends AvailabilityState>() → AvailabilityChangeEvent<S>?
The last event of a state of type S, or null when none was published.
override
getState<S extends AvailabilityState>(S defaultState) → S
The last state of type S published, or defaultState when none was.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onApplicationEvent(Object event) → void
Handles an event that supportsEvent accepted.
override
supportsEvent(Object event) → bool
Whether event should be passed to onApplicationEvent; asked for every published event. A published object that is not an ApplicationEvent arrives here as its PayloadApplicationEvent.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited