Package co.featbit.server.exterior
Interface InsightProcessor
- All Superinterfaces:
AutoCloseable,Closeable
Interface for a component to send analytics events.
The standard implementations are:
Factory.insightProcessorFactory()(the default), which sends events to feature flag centerFactory.externalEventTrack()which does nothing (on the assumption that another process will send the events);
-
Method Summary
Modifier and TypeMethodDescriptionvoidflush()Specifies that any buffered events should be sent as soon as possible, rather than waiting for the next flush interval.voidsend(InsightTypes.Event event) Records an event asynchronously.
-
Method Details
-
send
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, callingCloseable.close()will synchronously deliver any events that were not yet delivered prior to shutting down.
-