c

zio.temporal.workflow

ZQueueConsumer

class ZQueueConsumer[E] extends AnyRef

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ZQueueConsumer
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

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 cancellablePoll(timeout: zio.Duration): Option[E]

    Retrieves and removes the head of this queue, waiting up to the specified wait time if necessary for an element to become available.

    Retrieves and removes the head of this queue, waiting up to the specified wait time if necessary for an element to become available.

    timeout

    how long to wait before giving up

    returns

    the head of this queue wrapped in Some, or None if the specified waiting time elapses before an element is available

    Exceptions thrown

    io.temporal.failure.CanceledFailure if surrounding io.temporal.workflow.CancellationScope is canceled while waiting

  6. def cancellableTake(): E

    Retrieves and removes the head of this queue, waiting if necessary until an element becomes available.

    Retrieves and removes the head of this queue, waiting if necessary until an element becomes available.

    returns

    the head of this queue

    Exceptions thrown

    io.temporal.failure.CanceledFailure if surrounding io.temporal.workflow.CancellationScope is canceled while waiting

  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. def map[R](f: (E) => R): ZQueueConsumer[R]

    Returns a queue consisting of the results of applying the given function to the elements of this queue.

    Returns a queue consisting of the results of applying the given function to the elements of this queue.

    f

    a non-interfering, stateless function to apply to each element

    returns

    the new queue backed by this one.

  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  17. def peek(): Option[E]

    Retrieves the head of this queue keeping it in the queue if it is not empty without blocking.

    Retrieves the head of this queue keeping it in the queue if it is not empty without blocking.

    returns

    the head of this queue wrapped in Some, or None if the queue is empty

  18. def poll(timeout: zio.Duration): Option[E]

    Retrieves and removes the head of this queue, waiting up to the specified wait time if necessary for an element to become available.

    Retrieves and removes the head of this queue, waiting up to the specified wait time if necessary for an element to become available. It is not unblocked in case of the enclosing CancellationScope cancellation. Use cancellablePoll instead.

    timeout

    how long to wait before giving up.

    returns

    the head of this queue wrapped in Some, or None if the specified waiting time elapses before an element is available

  19. def poll(): Option[E]

    Retrieves and removes the head of this queue if it is not empty without blocking.

    Retrieves and removes the head of this queue if it is not empty without blocking.

    returns

    the head of this queue wrapped in Some, or None if the queue is empty

  20. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  21. def take(): E

    Retrieves and removes the head of this queue, waiting if necessary until an element becomes available.

    Retrieves and removes the head of this queue, waiting if necessary until an element becomes available. It is not unblocked in case of the enclosing * CancellationScope cancellation. Use cancellableTake instead.

    returns

    the head of this queue

  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

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 AnyRef

Inherited from Any

Ungrouped