Class SystemEventService

  • All Implemented Interfaces:
    EventService

    public final class SystemEventService
    extends Object
    implements EventService
    This is a placeholder until we get a real event service going. It does pretty much everything the service should do EXCEPT sending the events across a cluster.
    Author:
    Aaron Zeckoski ([email protected]) - azeckoski - 4:02:31 PM Nov 19, 2008
    • Constructor Detail

      • SystemEventService

        @Autowired(required=true)
        public SystemEventService​(RequestService requestService,
                                  CachingService cachingService)
    • Method Detail

      • shutdown

        @PreDestroy
        public void shutdown()
      • fireEvent

        public void fireEvent​(Event event)
        Description copied from interface: EventService
        Fires an event immediately (does not add it to the queue).
        Specified by:
        fireEvent in interface EventService
        Parameters:
        event - contains the data related to this event
      • queueEvent

        public void queueEvent​(Event event)
        Description copied from interface: EventService
        Queues up an event to be fired at the end of a successful request/transaction.
        Specified by:
        queueEvent in interface EventService
        Parameters:
        event - contains the data related to this event
      • registerEventListener

        public void registerEventListener​(EventListener listener)
        Description copied from interface: EventService
        Register an event listener which will be notified when events occur.
        Specified by:
        registerEventListener in interface EventService
        Parameters:
        listener - an implementation of the event listener
      • fireQueuedEvents

        protected int fireQueuedEvents()
        Fires all queued events for the current request.
        Returns:
        the number of events which were fired
      • clearQueuedEvents

        protected int clearQueuedEvents()
        Clears all events for the current request.
        Returns:
        the number of events that were cleared