final class ZWorkflowQueue[E] extends ZQueueConsumer[E] with ZQueueProducer[E]
- Alphabetic
- By Inheritance
- ZWorkflowQueue
- ZQueueProducer
- ZQueueConsumer
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def cancellableOffer(e: E, timeout: zio.Duration): Boolean
Inserts the specified element into this queue, waiting up to the specified wait time if necessary for space to become available.
Inserts the specified element into this queue, waiting up to the specified wait time if necessary for space to become available.
- e
the element to add
- timeout
how long to wait before giving up
- returns
true if successful, or false if the specified waiting time elapses before space is available
- Definition Classes
- ZWorkflowQueue → ZQueueProducer
- Exceptions thrown
ClassCastException
if the class of the specified element prevents it from being added to this queueIllegalArgumentException
if some property of the specified element prevents it from being added to this queueNullPointerException
if the specified element is nullio.temporal.failure.CanceledFailure
if surrounding io.temporal.workflow.CancellationScope is canceled while waiting
- 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
- Definition Classes
- ZQueueConsumer
- Exceptions thrown
io.temporal.failure.CanceledFailure
if surrounding io.temporal.workflow.CancellationScope is canceled while waiting
- def cancellablePut(e: E): Unit
Inserts the specified element into this queue, waiting if necessary for space to become available.
Inserts the specified element into this queue, waiting if necessary for space to become available.
- e
the element to add
- Definition Classes
- ZWorkflowQueue → ZQueueProducer
- Exceptions thrown
ClassCastException
if the class of the specified element prevents it from being added to this queueIllegalArgumentException
if some property of the specified element prevents it from being added to this queueNullPointerException
if the specified element is nullio.temporal.failure.CanceledFailure
if surrounding io.temporal.workflow.CancellationScope is canceled while waiting
- 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
- Definition Classes
- ZQueueConsumer
- Exceptions thrown
io.temporal.failure.CanceledFailure
if surrounding io.temporal.workflow.CancellationScope is canceled while waiting
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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.
- Definition Classes
- ZQueueConsumer
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def offer(e: E, timeout: zio.Duration): Boolean
Inserts the specified element into this queue, waiting up to the specified wait time if necessary for space to become available.
Inserts the specified element into this queue, waiting up to the specified wait time if necessary for space to become available. It is not unblocked in case of the enclosing CancellationScope cancellation. Use cancellableOffer instead.
- e
the element to add
- timeout
how long to wait before giving up
- returns
true if successful, or false if the specified waiting time elapses before space is available
- Definition Classes
- ZWorkflowQueue → ZQueueProducer
- Exceptions thrown
ClassCastException
if the class of the specified element prevents it from being added to this queueIllegalArgumentException
if some property of the specified element prevents it from being added to this queueNullPointerException
if the specified element is null
- def offer(e: E): Boolean
Inserts the specified element into this queue if it is possible to do so immediately without violating capacity restrictions, returning true upon success and false if no space is currently available.
Inserts the specified element into this queue if it is possible to do so immediately without violating capacity restrictions, returning true upon success and false if no space is currently available.
- e
the element to add
- returns
true if the element was added to this queue, else false
- Definition Classes
- ZWorkflowQueue → ZQueueProducer
- Exceptions thrown
ClassCastException
if the class of the specified element prevents it from being added to this queueIllegalArgumentException
if some property of the specified element prevents it from being added to this queueNullPointerException
if the specified element is null
- 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
- Definition Classes
- ZQueueConsumer
- 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
- Definition Classes
- ZQueueConsumer
- 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
- Definition Classes
- ZQueueConsumer
- def put(e: E): Unit
Inserts the specified element into this queue, waiting if necessary for space to become available.
Inserts the specified element into this queue, waiting if necessary for space to become available. It is not unblocked in case of the enclosing CancellationScope cancellation. Use cancellablePut instead.
- e
the element to add
- Definition Classes
- ZWorkflowQueue → ZQueueProducer
- Exceptions thrown
ClassCastException
if the class of the specified element prevents it from being added to this queueIllegalArgumentException
if some property of the specified element prevents it from being added to this queueNullPointerException
if the specified element is null
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- 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
- Definition Classes
- ZQueueConsumer
- val toJava: WorkflowQueue[E]
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)