Class GoogleAsyncEventListener

  • All Implemented Interfaces:
    EventListener

    public class GoogleAsyncEventListener
    extends AbstractUsageEventListener
    Notifies Google Analytics of Bitstream VIEW events. These events are stored in memory and then asynchronously processed by a single seperate thread.
    Author:
    April Herron, Luca Giamminonni
    • Constructor Detail

      • GoogleAsyncEventListener

        public GoogleAsyncEventListener()
    • Method Detail

      • init

        @PostConstruct
        public void init()
      • receiveEvent

        public void receiveEvent​(Event event)
      • sendCollectedEvents

        public void sendCollectedEvents()
        Send the collected events to Google Analytics.
      • getEventsBuffer

        public org.apache.commons.collections.Buffer getEventsBuffer()