io.reactors.common.concurrent.SnapQueue

Segment

final class Segment extends SegmentBase[T]

Linear Supertypes
SegmentBase[T], RootOrSegmentOrFrozen[T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Segment
  2. SegmentBase
  3. RootOrSegmentOrFrozen
  4. AnyRef
  5. 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 Segment(cap: Int)

  2. new Segment(a: Array[AnyRef])

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 Segment to any2stringadd[Segment] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Segment, B)

    Implicit information
    This member is added by an implicit conversion from Segment to ArrowAssoc[Segment] 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_ARRAY(i: Int, oldValue: Any, newValue: Any): Boolean

    Attributes
    protected[io.reactors.common.concurrent]
    Definition Classes
    SegmentBase
  7. final def CAS_HEAD(oldValue: Int, newValue: Int): Boolean

    Attributes
    protected[io.reactors.common.concurrent]
    Definition Classes
    SegmentBase
  8. final def CAS_LAST(oldValue: Int, newValue: Int): Boolean

    Attributes
    protected[io.reactors.common.concurrent]
    Definition Classes
    SegmentBase
  9. final def READ_ARRAY(i: Int): AnyRef

    Attributes
    protected[io.reactors.common.concurrent]
    Definition Classes
    SegmentBase
  10. final def READ_HEAD(): Int

    Attributes
    protected[io.reactors.common.concurrent]
    Definition Classes
    SegmentBase
  11. final def READ_LAST(): Int

    Attributes
    protected[io.reactors.common.concurrent]
    Definition Classes
    SegmentBase
  12. final def WRITE_ARRAY(i: Int, newValue: Any): Unit

    Attributes
    protected[io.reactors.common.concurrent]
    Definition Classes
    SegmentBase
  13. final def WRITE_HEAD(newValue: Int): Unit

    Attributes
    protected[io.reactors.common.concurrent]
    Definition Classes
    SegmentBase
  14. final def WRITE_LAST(newValue: Int): Unit

    Attributes
    protected[io.reactors.common.concurrent]
    Definition Classes
    SegmentBase
  15. def arrayT: Array[T]

  16. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  17. def capacity: Int

  18. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. def copyShift(): Segment

    Given a frozen, full segment, copies it into a freshly allocated one, which can be used for subsequent update operations.

    Given a frozen, full segment, copies it into a freshly allocated one, which can be used for subsequent update operations.

    The elements are shifted to the left of the segment as far as possible.

    Note: undefined behavior for non-frozen segments.

  20. def deq(): AnyRef

    Annotations
    @tailrec()
  21. def dequeue(): AnyRef

    Definition Classes
    Segment → RootOrSegmentOrFrozen
  22. def enq(p: Int, x: AnyRef): Boolean

    Annotations
    @tailrec()
  23. def enqueue(x: T): Boolean

    Definition Classes
    Segment → RootOrSegmentOrFrozen
  24. def ensuring(cond: (Segment) ⇒ Boolean, msg: ⇒ Any): Segment

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

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

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

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

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

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

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

    Implicit information
    This member is added by an implicit conversion from Segment to StringFormat[Segment] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  32. def freeze(): Unit

  33. def freezeHead(): Unit

    Annotations
    @tailrec()
  34. def freezeLast(p: Int): Unit

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

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

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

    Definition Classes
    Any
  38. def locateHead(): Int

    Given a frozen segment, locates the head position, that is, the position of the first non-dequeued element in the array.

    Given a frozen segment, locates the head position, that is, the position of the first non-dequeued element in the array.

    Note: throws an exception for non-frozen segments.

  39. def locateLast(): Int

    Given a frozen segment, locates the last position, that is, the position of the FROZEN entry in the array.

    Given a frozen segment, locates the last position, that is, the position of the FROZEN entry in the array. May update the last field.

    If the array was full when frozen, it returns the length of the array.

    Note: undefined behavior for non-frozen segments.

  40. def locateSize(): Int

    Using the locateHead and locateLast methods, computes the frozen segment size.

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

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

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

    Definition Classes
    AnyRef
  44. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  45. def toString(): String

    Definition Classes
    Segment → AnyRef → Any
  46. def unfreeze(): Segment

    Given a frozen, full segment, constructs a new segment with a new array.

    Given a frozen, full segment, constructs a new segment with a new array.

    May shrink the array to avoid having empty elements at the beginning.

    Note: undefined behavior for non-frozen segments.

  47. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  50. def [B](y: B): (Segment, B)

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

Inherited from SegmentBase[T]

Inherited from RootOrSegmentOrFrozen[T]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Segment to any2stringadd[Segment]

Inherited by implicit conversion StringFormat from Segment to StringFormat[Segment]

Inherited by implicit conversion Ensuring from Segment to Ensuring[Segment]

Inherited by implicit conversion ArrowAssoc from Segment to ArrowAssoc[Segment]

Ungrouped