Packages

trait ZTQueue[-RA, -RB, +EA, +EB, -A, +B] extends Serializable

A ZTQueue[RA, RB, EA, EB, A, B] is a transactional queue. Offerors can offer values of type A to the queue and takers can take values of type B from the queue. Offering values can require an environment of type RA and fail with an error of type EA. Taking values can require an environment of type RB and fail with an error of type EB.

Self Type
ZTQueue[RA, RB, EA, EB, A, B]
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ZTQueue
  2. Serializable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def capacity: Int

    The maximum capacity of the queue.

  2. abstract def isShutdown: USTM[Boolean]

    Checks whether the queue is shut down.

  3. abstract def offer(a: A): ZSTM[RA, EA, Boolean]

    Offers a value to the queue, returning whether the value was offered to the queue.

  4. abstract def offerAll(as: Iterable[A]): ZSTM[RA, EA, Boolean]

    Offers all of the specified values to the queue, returning whether they were offered to the queue.

  5. abstract def peek: ZSTM[RB, EB, B]

    Views the next element in the queue without removing it, retrying if the queue is empty.

  6. abstract def peekOption: ZSTM[RB, EB, Option[B]]

    Views the next element in the queue without removing it, returning None if the queue is empty.

  7. abstract def shutdown: USTM[Unit]

    Shuts down the queue.

  8. abstract def size: USTM[Int]

    The current number of values in the queue.

  9. abstract def take: ZSTM[RB, EB, B]

    Takes a value from the queue.

  10. abstract def takeAll: ZSTM[RB, EB, Chunk[B]]

    Takes all the values from the queue.

  11. abstract def takeUpTo(max: Int): ZSTM[RB, EB, Chunk[B]]

    Takes up to the specified number of values from the queue.

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. final def awaitShutdown: USTM[Unit]

    Waits for the queue to be shut down.

  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. final def contramap[C](f: (C) => A): ZTQueue[RA, RB, EA, EB, C, B]

    Transforms values offered to the queue using the specified function.

  8. final def contramapSTM[RC <: RA, EC >: EA, C](f: (C) => ZSTM[RC, EC, A]): ZTQueue[RC, RB, EC, EB, C, B]

    Transforms values offered to the queue using the specified transactional function.

  9. final def dimap[C, D](f: (C) => A, g: (B) => D): ZTQueue[RA, RB, EA, EB, C, D]

    Transforms values offered to and taken from the queue using the specified functions.

  10. final def dimapSTM[RC <: RA, RD <: RB, EC >: EA, ED >: EB, C, D](f: (C) => ZSTM[RC, EC, A], g: (B) => ZSTM[RD, ED, D]): ZTQueue[RC, RD, EC, ED, C, D]

    Transforms messages published to and taken from the queue using the specified transactional functions.

  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  13. final def filterInput[A1 <: A](f: (A1) => Boolean): ZTQueue[RA, RB, EA, EB, A1, B]

    Filters values offered to the queue using the specified function.

  14. final def filterInputSTM[RA1 <: RA, EA1 >: EA, A1 <: A](f: (A1) => ZSTM[RA1, EA1, Boolean]): ZTQueue[RA1, RB, EA1, EB, A1, B]

    Filters values offered to the queue using the specified transactional function.

  15. final def filterOutput(f: (B) => Boolean): ZTQueue[RA, RB, EA, EB, A, B]

    Filters values taken from the queue using the specified function.

  16. final def filterOutputSTM[RB1 <: RB, EB1 >: EB](f: (B) => ZSTM[RB1, EB1, Boolean]): ZTQueue[RA, RB1, EA, EB1, A, B]

    Filters values taken from the queue using the specified transactional function.

  17. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  18. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. final def isEmpty: USTM[Boolean]

    Checks if the queue is empty.

  21. final def isFull: USTM[Boolean]

    Checks if the queue is at capacity.

  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. final def map[C](f: (B) => C): ZTQueue[RA, RB, EA, EB, A, C]

    Transforms values taken from the queue using the specified function.

  24. final def mapSTM[RC <: RB, EC >: EB, C](f: (B) => ZSTM[RC, EC, C]): ZTQueue[RA, RC, EA, EC, A, C]

    Transforms values taken from the queue using the specified transactional function.

  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. final def poll: ZSTM[RB, EB, Option[B]]

    Takes a single element from the queue, returning None if the queue is empty.

  29. final def seek(f: (B) => Boolean): ZSTM[RB, EB, B]

    Drops elements from the queue while they do not satisfy the predicate, taking and returning the first element that does satisfy the predicate.

    Drops elements from the queue while they do not satisfy the predicate, taking and returning the first element that does satisfy the predicate. Retries if no elements satisfy the predicate.

  30. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  31. final def takeBetween(min: Int, max: Int): ZSTM[RB, EB, Chunk[B]]

    Takes a number of elements from the queue between the specified minimum and maximum.

    Takes a number of elements from the queue between the specified minimum and maximum. If there are fewer than the minimum number of elements available, retries until at least the minimum number of elements have been collected.

  32. final def takeN(n: Int): ZSTM[RB, EB, Chunk[B]]

    Takes the specified number of elements from the queue.

    Takes the specified number of elements from the queue. If there are fewer than the specified number of elements available, it retries until they become available.

  33. def toString(): String
    Definition Classes
    AnyRef → Any
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  36. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped