trait ServerNotifications extends EventStreamMarshalling with WebSocketDirectives
- Self Type
- ServerNotifications with InitialEventsPublisher with Execution with Loggable with JsonConverterProvider
- Source
- EventNotifications.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ServerNotifications
- WebSocketDirectives
- EventStreamMarshalling
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
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[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
createServerEvent(event: Any): ServerSentEvent
- Attributes
- protected
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
eventSubscriberWatcherActor: ActorRef
- Attributes
- protected
-
def
extractOfferedWsProtocols: Directive1[Seq[String]]
- Definition Classes
- WebSocketDirectives
-
def
extractWebSocketUpgrade: Directive1[WebSocketUpgrade]
- Definition Classes
- WebSocketDirectives
-
def
getActualUserEvents(user: String): Iterable[Any]
Return all actual user events client through web socket should be notified about.
Return all actual user events client through web socket should be notified about. Is called when web socket connection is established. Must be overrided by subclasses.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
handleWebSocketMessages(handler: Flow[Message, Message, Any]): Route
- Definition Classes
- WebSocketDirectives
-
def
handleWebSocketMessagesForOptionalProtocol(handler: Flow[Message, Message, Any], subprotocol: Option[String]): Route
- Definition Classes
- WebSocketDirectives
-
def
handleWebSocketMessagesForProtocol(handler: Flow[Message, Message, Any], subprotocol: String): Route
- Definition Classes
- WebSocketDirectives
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def publishUserEvent(user: String, event: Any): Unit
- def publishUserEvents(user: String, events: Iterable[Any]): Unit
-
val
serverEventsSource: Source[Any, ActorRef]
- Attributes
- protected
- def serverSideEventAction(userIdString: String): Route
-
def
subscribeToUserEvents(actor: ActorRef, userIdString: String): Unit
- Attributes
- protected
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
implicit final
val
toEventStream: ToEntityMarshaller[Source[ServerSentEvent, Any]]
- Definition Classes
- EventStreamMarshalling
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
val
wsNotificationGraph: Flow[Any, Strict, ActorRef]
- Attributes
- protected
-
def
wsNotificationsAction(userIdString: String): Route
Consider serverSideEventAction instead
Deprecated Value Members
-
def
extractUpgradeToWebSocket: Directive1[UpgradeToWebSocket]
- Definition Classes
- WebSocketDirectives
- Annotations
- @deprecated
- Deprecated
(Since version 10.2.0) use
extractWebSocketUpgradeinstead
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated