final class TQueue[A] extends AnyRef
- Alphabetic
- By Inheritance
- TQueue
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
- val capacity: Int
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
isEmpty: USTM[Boolean]
Checks if the queue is empty.
-
def
isFull: USTM[Boolean]
Checks if the queue is at capacity.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
last: USTM[A]
Views the last element inserted into the queue, retrying if the queue is empty.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
offer(a: A): USTM[Unit]
Offers the specified value to the queue, retrying if the queue is at capacity.
-
def
offerAll(as: Iterable[A]): USTM[Iterable[A]]
Offers each of the elements in the specified collection to the queue up to the maximum capacity of the queue, retrying if there is not capacity in the queue for all of these elements.
Offers each of the elements in the specified collection to the queue up to the maximum capacity of the queue, retrying if there is not capacity in the queue for all of these elements. Returns any remaining elements in the specified collection.
-
def
peek: USTM[A]
Views the next element in the queue without removing it, retrying if the queue is empty.
-
def
peekOption: USTM[Option[A]]
Views the next element in the queue without removing it, returning
None
if the queue is empty. -
def
poll: USTM[Option[A]]
Takes a single element from the queue, returning
None
if the queue is empty. -
def
seek(f: (A) ⇒ Boolean): USTM[A]
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.
-
def
size: USTM[Int]
Returns the number of elements currently in the queue.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
take: USTM[A]
Takes a single element from the queue, retrying if the queue is empty.
-
def
takeAll: USTM[List[A]]
Takes all elements from the queue.
-
def
takeUpTo(max: Int): USTM[List[A]]
Takes up to the specified maximum number of elements from the queue.
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()