Skip to content
scalive
Menu
ConnectingLiveReconnectingOffline
GitHub
e

QueuePressure

enum QueuePressure(lifecycle: ConnectedLifecycleContext, queue: LifecycleQueue, depth: Int, capacity: Int, status: LifecycleQueueStatus) extends LifecycleEvent

A depth sample from a bounded runtime queue, or an offer that a full queue rejected.

Parameters

lifecycle

The lifecycle that owns the queue.

queue

The queue that Scalive observed.

depth

The number of items in the queue when Scalive observed it.

capacity

The maximum number of items the queue accepts.

status

Whether this is an ordinary sample or a rejected offer.

Defined by scalive.LifecycleEvent.QueuePressure. View source (scalive/api/src/scalive/LifecycleObserver.scala:508-513)

Values5

capacity

val capacity: Int

The maximum number of items the queue accepts.

Defined by scalive.LifecycleEvent.QueuePressure.capacity. View source (scalive/api/src/scalive/LifecycleObserver.scala:512-512)

depth

val depth: Int

The number of items in the queue when Scalive observed it.

Defined by scalive.LifecycleEvent.QueuePressure.depth. View source (scalive/api/src/scalive/LifecycleObserver.scala:511-511)

lifecycle

val lifecycle: ConnectedLifecycleContext

The lifecycle that owns the queue.

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

queue

val queue: LifecycleQueue

The queue that Scalive observed.

Defined by scalive.LifecycleEvent.QueuePressure.queue. View source (scalive/api/src/scalive/LifecycleObserver.scala:510-510)

status

val status: LifecycleQueueStatus

Whether this is an ordinary sample or a rejected offer.

Defined by scalive.LifecycleEvent.QueuePressure.status. View source (scalive/api/src/scalive/LifecycleObserver.scala:513-513)