Class AbstractBackgroundTaskEvent

java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
io.jmix.flowui.event.AbstractBackgroundTaskEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BackgroundTaskTimeoutEvent, BackgroundTaskUnhandledExceptionEvent

public abstract class AbstractBackgroundTaskEvent extends org.springframework.context.ApplicationEvent
Base class for events that contain information about BackgroundTask.
See Also:
  • Constructor Details

    • AbstractBackgroundTaskEvent

      public AbstractBackgroundTaskEvent(Object source, BackgroundTask<?,?> task)
  • Method Details

    • getTask

      public BackgroundTask<?,?> getTask()
      Returns the background task associated with this event.
      Returns:
      the BackgroundTask instance associated with the event
    • isStopPropagation

      public boolean isStopPropagation()
      Determines whether the propagation of the event should be stopped.
      Returns:
      true if the propagation of the event should be stopped, false otherwise
    • setStopPropagation

      public void setStopPropagation(boolean stopPropagation)
      Sets whether the propagation of this event should be stopped.
      Parameters:
      stopPropagation - a boolean value indicating whether to stop the propagation of the event. true to stop propagation, false otherwise.