Interface EventBodySerializer

  • All Known Implementing Classes:
    PlainTextEventBodySerializer

    public interface EventBodySerializer
    Define the interface to allow users to define their own event body serializer for HTTP event adapter: Simply create a class implementing this interface, and add the full class name as a property (`eventBodySerializer`) to the adapter.
    See Also:
    PlainTextEventBodySerializer
    • Method Detail

      • getEventTime

        default double getEventTime​(HttpEventCollectorEventInfo eventInfo)
        Timestamp to be sent with custom message.
        Returns:
        0 if do not want to send timestamp with message, otherwise number of seconds, between the current time and midnight, January 1, 1970 UTC.