Class ServerSentEvent$

  • All Implemented Interfaces:
    java.io.Serializable

    public class ServerSentEvent$
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Field Detail

      • MODULE$

        public static final ServerSentEvent$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • ServerSentEvent$

        public ServerSentEvent$()
    • Method Detail

      • apply

        public ServerSentEvent apply​(java.lang.String data,
                                     java.lang.String type)
        Creates a ServerSentEvent.

        Parameters:
        data - data, may span multiple lines
        type - type, must not contain \n or \r
        Returns:
        (undocumented)
      • apply

        public ServerSentEvent apply​(java.lang.String data,
                                     java.lang.String type,
                                     java.lang.String id)
        Creates a ServerSentEvent.

        Parameters:
        data - data, may span multiple lines
        type - type, must not contain \n or \r
        id - id, must not contain \n or \r
        Returns:
        (undocumented)
      • apply

        public ServerSentEvent apply​(java.lang.String data,
                                     int retry)
        Creates a ServerSentEvent.

        Parameters:
        data - data, may span multiple lines
        retry - reconnection delay in milliseconds
        Returns:
        (undocumented)