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
All Methods Instance Methods Abstract Methods 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.
-
-
-
Method Detail
-
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, callingCloseable.close()
will synchronously deliver any events that were not yet delivered prior to shutting down.
-
-