TurnSucceeded
enum TurnSucceeded(lifecycle: ConnectedLifecycleContext, turnId: Long, commandId: Option[Long], kind: LifecycleTurnKind, durationNanos: Long) extends LifecycleEventA connected turn finished without a failure.
A turn processes one unit of work for the lifecycle, such as a browser event or a message. A turn that a connected-turn guard halts also counts as succeeded.
Parameters
lifecycleThe lifecycle that ran the turn.
turnIdThe ID of the turn, unique within the server process.
commandIdThe ID of the command that started the turn, or
Nonefor the bootstrap turn and turns that Scalive starts itself.kindThe source of the work the turn processed.
durationNanosThe duration of the turn, in nanoseconds.
Defined by scalive.LifecycleEvent.TurnSucceeded. View source (scalive/api/src/scalive/LifecycleObserver.scala:416-421)
Values5
commandId
val commandId: Option[Long]The ID of the command that started the turn, or None for the bootstrap turn and turns that
Scalive starts itself.
Defined by scalive.LifecycleEvent.TurnSucceeded.commandId. View source (scalive/api/src/scalive/LifecycleObserver.scala:419-419)
durationNanos
val durationNanos: LongThe duration of the turn, in nanoseconds.
Defined by scalive.LifecycleEvent.TurnSucceeded.durationNanos. View source (scalive/api/src/scalive/LifecycleObserver.scala:421-421)
kind
val kind: LifecycleTurnKindThe source of the work the turn processed.
Defined by scalive.LifecycleEvent.TurnSucceeded.kind. View source (scalive/api/src/scalive/LifecycleObserver.scala:420-420)
lifecycle
val lifecycle: ConnectedLifecycleContextThe lifecycle that ran the turn.
Defined by scalive.LifecycleEvent.TurnSucceeded.lifecycle. View source (scalive/api/src/scalive/LifecycleObserver.scala:417-417)
turnId
val turnId: LongThe ID of the turn, unique within the server process.
Defined by scalive.LifecycleEvent.TurnSucceeded.turnId. View source (scalive/api/src/scalive/LifecycleObserver.scala:418-418)