Class RqueueBootstrapEvent

java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
com.github.sonus21.rqueue.models.event.RqueueBootstrapEvent
All Implemented Interfaces:
Serializable

public class RqueueBootstrapEvent extends org.springframework.context.ApplicationEvent
This event is generated at RqueueContainer startup and shutdown.

This event can be used for different purpose, like registering some queue once Rqueue has started, deleting all queue messages, cleaning up some resources at shutdown etc.

start is false means it's shutdown event otherwise it's bootstrap event.

See Also:
  • Constructor Details

    • RqueueBootstrapEvent

      public RqueueBootstrapEvent(Object source, boolean start)
  • Method Details

    • isStartup

      public boolean isStartup()
    • isShutdown

      public boolean isShutdown()