Interface EventProcessor

All Superinterfaces:
java.lang.AutoCloseable, java.io.Closeable

public interface EventProcessor
extends java.io.Closeable
Interface for an object that can send or store analytics events.
Since:
4.0.0
  • Method Summary

    Modifier and Type Method Description
    void flush()
    Specifies that any buffered events should be sent as soon as possible, rather than waiting for the next flush interval.
    void sendEvent​(Event e)
    Records an event asynchronously.

    Methods inherited from interface java.io.Closeable

    close
  • Method Details

    • sendEvent

      void sendEvent​(Event e)
      Records an event asynchronously.
      Parameters:
      e - an event
    • flush

      void flush()
      Specifies that any buffered events should be sent as soon as possible, rather than waiting for the next flush interval. This method is asynchronous, so events still may not be sent until a later time. However, calling Closeable.close() will synchronously deliver any events that were not yet delivered prior to shutting down.