Class GoogleAsyncEventListener

java.lang.Object
org.dspace.usage.AbstractUsageEventListener
org.dspace.google.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 separate thread.
Author:
April Herron, Luca Giamminonni
  • Field Details

  • Constructor Details

    • GoogleAsyncEventListener

      public GoogleAsyncEventListener()
  • Method Details

    • init

      @PostConstruct public void init()
    • receiveEvent

      public void receiveEvent(Event event)
    • sendCollectedEvents

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

      public List<GoogleAnalyticsClient> getGoogleAnalyticsClients()
    • setGoogleAnalyticsClients

      public void setGoogleAnalyticsClients(List<GoogleAnalyticsClient> googleAnalyticsClients)
    • getEventsBuffer

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