Package akka.http.scaladsl.model.sse
Class ServerSentEvent$
- java.lang.Object
-
- akka.http.scaladsl.model.sse.ServerSentEvent$
-
- All Implemented Interfaces:
java.io.Serializable
public class ServerSentEvent$ extends java.lang.Object implements java.io.Serializable- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static ServerSentEvent$MODULE$Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description ServerSentEvent$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerSentEventapply(java.lang.String data, int retry)Creates aServerSentEvent.ServerSentEventapply(java.lang.String data, java.lang.String type)Creates aServerSentEvent.ServerSentEventapply(java.lang.String data, java.lang.String type, java.lang.String id)Creates aServerSentEvent.ServerSentEventheartbeat()
-
-
-
Field Detail
-
MODULE$
public static final ServerSentEvent$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
heartbeat
public ServerSentEvent heartbeat()
-
apply
public ServerSentEvent apply(java.lang.String data, java.lang.String type)
Creates aServerSentEvent.- Parameters:
data- data, may span multiple linestype- 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 aServerSentEvent.- Parameters:
data- data, may span multiple linestype- type, must not contain \n or \rid- id, must not contain \n or \r- Returns:
- (undocumented)
-
apply
public ServerSentEvent apply(java.lang.String data, int retry)
Creates aServerSentEvent.- Parameters:
data- data, may span multiple linesretry- reconnection delay in milliseconds- Returns:
- (undocumented)
-
-