Package io.quarkus.dev.appstate
Class ApplicationStateNotification
- java.lang.Object
-
- io.quarkus.dev.appstate.ApplicationStateNotification
-
public class ApplicationStateNotification extends Object
A class that allows for access to the application state, even from outside the runtime class loader. This should generally only be used by dev mode internals that need information about the current application state. This class makes no attempt to verify that an application is starting/stopping when the wait methods are called, this should only be called by a client that is controlling the Quarkus lifecycle, and so knows what the current lifecycle state is.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classApplicationStateNotification.State
-
Constructor Summary
Constructors Constructor Description ApplicationStateNotification()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ApplicationStateNotification.StategetState()static voidnotifyApplicationStopped()static voidnotifyStartupComplete()static voidnotifyStartupFailed(Throwable t)Notify of startup failure.static voidreset()static voidwaitForApplicationStart()static voidwaitForApplicationStop()
-
-
-
Method Detail
-
reset
public static void reset()
-
notifyStartupComplete
public static void notifyStartupComplete()
-
notifyApplicationStopped
public static void notifyApplicationStopped()
-
notifyStartupFailed
public static void notifyStartupFailed(Throwable t)
Notify of startup failure. Before this method is called the exception should be logged.- Parameters:
t- The exception
-
waitForApplicationStart
public static void waitForApplicationStart()
-
waitForApplicationStop
public static void waitForApplicationStop()
-
getState
public static ApplicationStateNotification.State getState()
-
-