Interface InsightProcessor

All Superinterfaces:
AutoCloseable, Closeable

public interface InsightProcessor extends Closeable
Interface for a component to send analytics events.

The standard implementations are:

  • Method Summary

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

    Methods inherited from interface java.io.Closeable

    close
  • Method Details

    • send

      void send(InsightTypes.Event event)
      Records an event asynchronously.
      Parameters:
      event - insight 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.