Skip to content
scalive
Menu
ConnectingLiveReconnectingOffline
GitHub
e

TurnSucceeded

enum TurnSucceeded(lifecycle: ConnectedLifecycleContext, turnId: Long, commandId: Option[Long], kind: LifecycleTurnKind, durationNanos: Long) extends LifecycleEvent

A 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

lifecycle

The lifecycle that ran the turn.

turnId

The ID of the turn, unique within the server process.

commandId

The ID of the command that started the turn, or None for the bootstrap turn and turns that Scalive starts itself.

kind

The source of the work the turn processed.

durationNanos

The 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: Long

The 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: LifecycleTurnKind

The 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: ConnectedLifecycleContext

The lifecycle that ran the turn.

Defined by scalive.LifecycleEvent.TurnSucceeded.lifecycle. View source (scalive/api/src/scalive/LifecycleObserver.scala:417-417)

turnId

val turnId: Long

The 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)