public class LivenessStateChangedEvent extends ApplicationEvent
ApplicationEvent sent when the LivenessState of the application
changes.
Any application component can send such events to update the state of the application.
source| Modifier and Type | Method and Description |
|---|---|
static LivenessStateChangedEvent |
broken(String cause)
Create a new
ApplicationEvent signaling that the LivenessState is
broken. |
static LivenessStateChangedEvent |
broken(Throwable throwable)
Create a new
ApplicationEvent signaling that the LivenessState is
broken. |
LivenessState |
getLivenessState() |
static LivenessStateChangedEvent |
live(String cause)
Create a new
ApplicationEvent signaling that the LivenessState is
live. |
getTimestampgetSource, toStringpublic LivenessState getLivenessState()
public static LivenessStateChangedEvent live(String cause)
ApplicationEvent signaling that the LivenessState is
live.cause - the cause of the live internal state of the applicationpublic static LivenessStateChangedEvent broken(String cause)
ApplicationEvent signaling that the LivenessState is
broken.cause - the cause of the broken internal state of the applicationpublic static LivenessStateChangedEvent broken(Throwable throwable)
ApplicationEvent signaling that the LivenessState is
broken.throwable - the exception that caused the broken internal state of the
application