Class ServerSentEvent
java.lang.Object
org.apache.pekko.http.javadsl.model.sse.ServerSentEvent
org.apache.pekko.http.scaladsl.model.sse.ServerSentEvent
- All Implemented Interfaces:
- Serializable,- scala.Equals,- scala.Product
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionServerSentEvent(String data, scala.Option<String> eventType, scala.Option<String> id, scala.Option<Object> retry) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic ServerSentEventCreates aServerSentEvent.static ServerSentEventCreates aServerSentEvent.static ServerSentEventCreates aServerSentEvent.data()org.apache.pekko.util.ByteStringencode()scala.Option<String>getData()Data, may span multiple lines.Optional type, must not contain \n or \r.getId()Optional id, must not contain \n or \r.getRetry()Optional reconnection delay in milliseconds.static ServerSentEventscala.Option<String>id()scala.Option<Object>retry()Methods inherited from class org.apache.pekko.http.javadsl.model.sse.ServerSentEventcreate, create, create, create, createMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface scala.EqualscanEqual, equalsMethods inherited from interface scala.ProductproductArity, productElement, productElementName, productElementNames, productIterator, productPrefix
- 
Constructor Details- 
ServerSentEvent
 
- 
- 
Method Details- 
heartbeat
- 
applyCreates aServerSentEvent.- Parameters:
- data- data, may span multiple lines
- type- type, must not contain \n or \r
- Returns:
- (undocumented)
 
- 
applyCreates aServerSentEvent.- 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)
 
- 
applyCreates aServerSentEvent.- Parameters:
- data- data, may span multiple lines
- retry- reconnection delay in milliseconds
- Returns:
- (undocumented)
 
- 
data
- 
eventType
- 
id
- 
retry
- 
encodepublic org.apache.pekko.util.ByteString encode()
- 
getDataDescription copied from class:ServerSentEventData, may span multiple lines.- Specified by:
- getDatain class- ServerSentEvent
 
- 
getEventTypeDescription copied from class:ServerSentEventOptional type, must not contain \n or \r.- Specified by:
- getEventTypein class- ServerSentEvent
 
- 
getIdDescription copied from class:ServerSentEventOptional id, must not contain \n or \r.- Specified by:
- getIdin class- ServerSentEvent
 
- 
getRetryDescription copied from class:ServerSentEventOptional reconnection delay in milliseconds.- Specified by:
- getRetryin class- ServerSentEvent
 
 
-