Class ApplicationStoppingEvent

All Implemented Interfaces:
Handleable, Unique<UUID>

public class ApplicationStoppingEvent extends ApplicationEvent
An event called by the application to notify other classes that the application is about to stop, and all modules must prepare for termination.
See Also:
  • Constructor Details

    • ApplicationStoppingEvent

      public ApplicationStoppingEvent(@Nonnull Application application)
      Creates a new application stopping event.
      Parameters:
      application - The application which invoked this event
    • ApplicationStoppingEvent

      public ApplicationStoppingEvent(@Nonnull Application application, @Nullable Handleable cause)
      Creates a new application stopping event.
      Parameters:
      application - The application which invoked this event
      cause - The cause of this event's invocation