Class EventImpl<T>

  • All Implemented Interfaces:
    Event<T>
    Direct Known Subclasses:
    WaterMarkEvent

    public class EventImpl<T>
    extends java.lang.Object
    implements Event<T>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T get()
      Returns the wrapped object.
      org.apache.pulsar.functions.api.Record<?> getRecord()  
      long getTimestamp()
      The event timestamp in millis.
      boolean isWatermark()
      If this is a watermark event or not.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getTimestamp

        public long getTimestamp()
        Description copied from interface: Event
        The event timestamp in millis.
        Specified by:
        getTimestamp in interface Event<T>
        Returns:
        the event timestamp in milliseconds.
      • get

        public T get()
        Description copied from interface: Event
        Returns the wrapped object.
        Specified by:
        get in interface Event<T>
        Returns:
        the wrapped object.
      • isWatermark

        public boolean isWatermark()
        Description copied from interface: Event
        If this is a watermark event or not. Watermark events are used for tracking time while processing event based ts.
        Specified by:
        isWatermark in interface Event<T>
        Returns:
        true if this is a watermark event
      • getRecord

        public org.apache.pulsar.functions.api.Record<?> getRecord()
        Specified by:
        getRecord in interface Event<T>
        Returns:
        the record associated with the event