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