Interface EventBuilder


public interface EventBuilder
The EventBuilder is used to emit() events.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Emit an event.
    setTimestamp(long timestamp, TimeUnit unit)
    Set the epoch timestamp for the event, using the timestamp and unit.
    Set the epoch timestamp for the event, using the instant.
  • Method Details

    • setTimestamp

      EventBuilder setTimestamp(long timestamp, TimeUnit unit)
      Set the epoch timestamp for the event, using the timestamp and unit.

      The timestamp is the time at which the event occurred. If unset, it will be set to the current time when emit() is called.

    • setTimestamp

      EventBuilder setTimestamp(Instant instant)
      Set the epoch timestamp for the event, using the instant.

      The timestamp is the time at which the event occurred. If unset, it will be set to the current time when emit() is called.

    • emit

      void emit()
      Emit an event.