Class GfSseInboundEvent


  • public class GfSseInboundEvent
    extends Object
    Incoming SSE event.
    • Method Detail

      • getName

        public String getName()
        Get the event name.
        Returns:
        event name or null if it is not present.
      • getData

        public <T> T getData​(Class<T> messageType,
                             String contentType)
                      throws IOException
        Get event data.
        Parameters:
        messageType - type of stored data content.
        Throws:
        IOException - when provided type can't be read.
      • getData

        public String getData()
                       throws IOException
        Get event data as String.
        Returns:
        event data de-serialized as string.
        Throws:
        IOException - when provided type can't be read.