io.reactors.common.concurrent

SnapQueue

class SnapQueue[T] extends SnapQueueBase[T] with Serializable

Concurrent queue with constant-time snapshots.

Linear Supertypes
Serializable, Serializable, SnapQueueBase[T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SnapQueue
  2. Serializable
  3. Serializable
  4. SnapQueueBase
  5. AnyRef
  6. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SnapQueue()(implicit ops: SupportOps[T])

    Creates a new SnapQueue, with the segment length set to 64.

  2. new SnapQueue(L: Int)(implicit ops: SupportOps[T])

    Creates a new SnapQueue.

    Creates a new SnapQueue.

    L

    length of the SnapQueue segments, usually between 32 and 256

  3. new SnapQueue(L: Int, leaky: Boolean)(implicit ops: SupportOps[T])

    Creates a new SnapQueue.

    Creates a new SnapQueue.

    L

    length of the SnapQueue segments, usually between 32 and 256

    leaky

    whether or not the SnapQueue can leak (false by default) -- gives a small performance boost when true, with the disadvantage that up to L previously dequeued elements are garbage collectable (useful for applications where elements are small)

Type Members

  1. final class Frozen extends RootOrSegmentOrFrozen[T]

  2. final class Root extends RootBase[T]

  3. final class Segment extends SegmentBase[T]

  4. final class Side extends SideBase[T]

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from SnapQueue[T] to any2stringadd[SnapQueue[T]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (SnapQueue[T], B)

    Implicit information
    This member is added by an implicit conversion from SnapQueue[T] to ArrowAssoc[SnapQueue[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  6. final def CAS_ROOT(oldValue: RootOrSegmentOrFrozen[T], newValue: RootOrSegmentOrFrozen[T]): Boolean

    Attributes
    protected[io.reactors.common.concurrent]
    Definition Classes
    SnapQueueBase
  7. val L: Int

  8. final def READ_ROOT(): RootOrSegmentOrFrozen[T]

    Attributes
    protected[io.reactors.common.concurrent]
    Definition Classes
    SnapQueueBase
  9. final def WRITE_ROOT(r: RootOrSegmentOrFrozen[T]): Unit

    Attributes
    protected[io.reactors.common.concurrent]
    Definition Classes
    SnapQueueBase
  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def completeFreeze(r: RootOrSegmentOrFrozen[T]): Unit

  13. final def concat(that: SnapQueue[T]): SnapQueue[T]

  14. final def dequeue(): T

    Annotations
    @tailrec()
  15. final def enqueue(x: T): Unit

    Annotations
    @tailrec()
  16. def ensuring(cond: (SnapQueue[T]) ⇒ Boolean, msg: ⇒ Any): SnapQueue[T]

    Implicit information
    This member is added by an implicit conversion from SnapQueue[T] to Ensuring[SnapQueue[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: (SnapQueue[T]) ⇒ Boolean): SnapQueue[T]

    Implicit information
    This member is added by an implicit conversion from SnapQueue[T] to Ensuring[SnapQueue[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. def ensuring(cond: Boolean, msg: ⇒ Any): SnapQueue[T]

    Implicit information
    This member is added by an implicit conversion from SnapQueue[T] to Ensuring[SnapQueue[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. def ensuring(cond: Boolean): SnapQueue[T]

    Implicit information
    This member is added by an implicit conversion from SnapQueue[T] to Ensuring[SnapQueue[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  20. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  22. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from SnapQueue[T] to StringFormat[SnapQueue[T]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  24. final def freeze(r: RootOrSegmentOrFrozen[T], f: Trans[T]): Frozen

    Annotations
    @tailrec()
  25. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  26. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  27. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  28. val leaky: Boolean

  29. val mustInitialize: Boolean

  30. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  31. final def notify(): Unit

    Definition Classes
    AnyRef
  32. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  33. final def snapshot(): SnapQueue[T]

  34. val stamp: (Long, String)

  35. implicit val supportOps: SupportOps[T]

  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  37. def toString(): String

    Definition Classes
    AnyRef → Any
  38. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. def [B](y: B): (SnapQueue[T], B)

    Implicit information
    This member is added by an implicit conversion from SnapQueue[T] to ArrowAssoc[SnapQueue[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from Serializable

Inherited from Serializable

Inherited from SnapQueueBase[T]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from SnapQueue[T] to any2stringadd[SnapQueue[T]]

Inherited by implicit conversion StringFormat from SnapQueue[T] to StringFormat[SnapQueue[T]]

Inherited by implicit conversion Ensuring from SnapQueue[T] to Ensuring[SnapQueue[T]]

Inherited by implicit conversion ArrowAssoc from SnapQueue[T] to ArrowAssoc[SnapQueue[T]]

Ungrouped