final case class ServerSentEvent(data: Option[String] = None, type: Option[String] = None, id: Option[String] = None, retry: Option[Int] = None) extends akkasse.japi.ServerSentEvent with Product with Serializable
Representation of a server-sent event.
- data
optional data, may be empty or span multiple lines
- type
optional type, must not contain \n or \r
- id
optional id, must not contain \n or \r
- retry
optional reconnection delay in milliseconds
- Alphabetic
- By Inheritance
- ServerSentEvent
- Serializable
- Serializable
- Product
- Equals
- ServerSentEvent
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ServerSentEvent(data: Option[String] = None, type: Option[String] = None, id: Option[String] = None, retry: Option[Int] = None)
- data
optional data, may be empty or span multiple lines
- type
optional type, must not contain \n or \r
- id
optional id, must not contain \n or \r
- retry
optional reconnection delay in milliseconds
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- val data: Option[String]
-
def
encode: ByteString
Encodes this server-sent event to an
akka.util.ByteStringaccording to the SSE specification.Encodes this server-sent event to an
akka.util.ByteStringaccording to the SSE specification.- returns
message converted to UTF-8 encoded
akka.util.ByteString
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
getData(): Optional[String]
- Definition Classes
- ServerSentEvent → ServerSentEvent
-
def
getId(): Optional[String]
- Definition Classes
- ServerSentEvent → ServerSentEvent
-
def
getRetry(): OptionalInt
- Definition Classes
- ServerSentEvent → ServerSentEvent
-
def
getType(): Optional[String]
- Definition Classes
- ServerSentEvent → ServerSentEvent
- val id: Option[String]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- val retry: Option[Int]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
Converts to a
java.lang.Stringaccording to the SSE specification.Converts to a
java.lang.Stringaccording to the SSE specification.- returns
message converted to
java.lang.String
- Definition Classes
- ServerSentEvent → AnyRef → Any
- val type: Option[String]
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )