JoinRejected
enum JoinRejected(connectionId: Long, lifecycleId: Option[Long], target: LifecycleJoinTarget, attempt: LifecycleJoinAttempt, durationNanos: Long, error: LifecycleError) extends LifecycleEventScalive rejected a join, or the joined LiveView failed to start.
Parameters
connectionIdThe ID of the WebSocket connection that sent the join.
lifecycleIdThe ID of the lifecycle the join started, as in its mount events, or
Nonewhen Scalive rejected the join before starting one.targetWhether the join targeted a root or nested LiveView.
attemptThe join counters reported by the client.
durationNanosThe time from receiving the join until the rejection, in nanoseconds.
errorThe failure, classified as JoinRejected or Interrupted. It carries a cause when an admitted lifecycle failed to start.
Defined by scalive.LifecycleEvent.JoinRejected. View source (scalive/api/src/scalive/LifecycleObserver.scala:368-374)
Values6
attempt
val attempt: LifecycleJoinAttemptThe join counters reported by the client.
Defined by scalive.LifecycleEvent.JoinRejected.attempt. View source (scalive/api/src/scalive/LifecycleObserver.scala:372-372)
connectionId
val connectionId: LongThe ID of the WebSocket connection that sent the join.
Defined by scalive.LifecycleEvent.JoinRejected.connectionId. View source (scalive/api/src/scalive/LifecycleObserver.scala:369-369)
durationNanos
val durationNanos: LongThe time from receiving the join until the rejection, in nanoseconds.
Defined by scalive.LifecycleEvent.JoinRejected.durationNanos. View source (scalive/api/src/scalive/LifecycleObserver.scala:373-373)
error
val error: LifecycleErrorThe failure, classified as JoinRejected or Interrupted. It carries a cause when an admitted lifecycle failed to start.
Defined by scalive.LifecycleEvent.JoinRejected.error. View source (scalive/api/src/scalive/LifecycleObserver.scala:374-374)
lifecycleId
val lifecycleId: Option[Long]The ID of the lifecycle the join started, as in its mount events, or None when Scalive
rejected the join before starting one.
Defined by scalive.LifecycleEvent.JoinRejected.lifecycleId. View source (scalive/api/src/scalive/LifecycleObserver.scala:370-370)
target
val target: LifecycleJoinTargetWhether the join targeted a root or nested LiveView.
Defined by scalive.LifecycleEvent.JoinRejected.target. View source (scalive/api/src/scalive/LifecycleObserver.scala:371-371)