Packages

c

zio.internal

MutableQueueFieldsPadding

abstract class MutableQueueFieldsPadding[A] extends TailPadding[A] with Serializable

Linear Supertypes
TailPadding[A], PreTailPadding[A], HeadPadding[A], ClassFieldsPadding[A], Serializable, MutableConcurrentQueue[A], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MutableQueueFieldsPadding
  2. TailPadding
  3. PreTailPadding
  4. HeadPadding
  5. ClassFieldsPadding
  6. Serializable
  7. MutableConcurrentQueue
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new MutableQueueFieldsPadding()

Abstract Value Members

  1. abstract val capacity: Int

    The maximum number of elements that a queue can hold.

    The maximum number of elements that a queue can hold.

    Definition Classes
    MutableConcurrentQueue
    Note

    that unbounded queues can still implement this interface with capacity = MAX_INT.

  2. abstract def dequeuedCount(): Long

    returns

    the number of elements that have ever been taken from the queue.

    Definition Classes
    MutableConcurrentQueue
    Note

    if you know how much time the queue is alive, you can calculate the rate at which elements are being dequeued.

  3. abstract def enqueuedCount(): Long

    returns

    the number of elements that have ever been added to the queue.

    Definition Classes
    MutableConcurrentQueue
    Note

    that Long is used here, since Int will be overflowed really quickly for busy queues.

    ,

    if you know how much time the queue is alive, you can calculate the rate at which elements are being enqueued.

  4. abstract def isEmpty(): Boolean
    Definition Classes
    MutableConcurrentQueue
  5. abstract def isFull(): Boolean
    Definition Classes
    MutableConcurrentQueue
  6. abstract def offer(a: A): Boolean

    A non-blocking enqueue.

    A non-blocking enqueue.

    returns

    whether the enqueue was successful or not.

    Definition Classes
    MutableConcurrentQueue
  7. abstract def poll(default: A): A

    A non-blocking dequeue.

    A non-blocking dequeue.

    returns

    either an element from the queue, or the default param.

    Definition Classes
    MutableConcurrentQueue
    Note

    that if there's no meaningful default for your type, you can always use poll(null). Not the best, but reasonable price to pay for lower heap churn from not using Option here.

  8. abstract def size(): Int

    returns

    the current number of elements inside the queue.

    Definition Classes
    MutableConcurrentQueue
    Note

    that this method can be non-atomic and return the approximate number in a concurrent setting.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  13. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. def offerAll[A1 <: A](as: Iterable[A1]): Chunk[A1]

    A non-blocking enqueue of multiple elements.

    A non-blocking enqueue of multiple elements.

    Definition Classes
    MutableConcurrentQueue
  15. def pollUpTo(n: Int): Chunk[A]

    A non-blocking dequeue of multiple elements.

    A non-blocking dequeue of multiple elements.

    Definition Classes
    MutableConcurrentQueue
  16. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  17. def toString(): String
    Definition Classes
    AnyRef → Any
  18. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  19. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  20. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from TailPadding[A]

Inherited from PreTailPadding[A]

Inherited from HeadPadding[A]

Inherited from ClassFieldsPadding[A]

Inherited from Serializable

Inherited from MutableConcurrentQueue[A]

Inherited from AnyRef

Inherited from Any

Ungrouped