MessageQueue

org.apache.pekko.dispatch.UnboundedPriorityMailbox.MessageQueue
class MessageQueue(initialCapacity: Int, cmp: Comparator[Envelope]) extends PriorityBlockingQueue[Envelope], UnboundedQueueBasedMessageQueue

Attributes

Source
Mailbox.scala
Graph
Supertypes
trait MessageQueue
class PriorityBlockingQueue[Envelope]
trait Serializable
trait BlockingQueue[Envelope]
class AbstractQueue[Envelope]
trait Queue[Envelope]
class AbstractCollection[Envelope]
trait Collection[Envelope]
trait Iterable[Envelope]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

final def queue: Queue[Envelope]

Attributes

Source
Mailbox.scala

Inherited methods

def add(x$0: Envelope): Boolean

Attributes

Inherited from:
PriorityBlockingQueue
def addAll(x$0: Collection[_ <: Envelope]): Boolean

Attributes

Inherited from:
AbstractQueue
def cleanUp(owner: ActorRef, deadLetters: MessageQueue): Unit

Called when the mailbox this queue belongs to is disposed of. Normally it is expected to transfer all remaining messages into the dead letter queue which is passed in. The owner of this MessageQueue is passed in if available (e.g. for creating DeadLetters()), “/deadletters” otherwise.

Called when the mailbox this queue belongs to is disposed of. Normally it is expected to transfer all remaining messages into the dead letter queue which is passed in. The owner of this MessageQueue is passed in if available (e.g. for creating DeadLetters()), “/deadletters” otherwise.

Note that we implement the method in a recursive manner mainly for atomicity (not touching the queue twice).

Attributes

Inherited from:
QueueBasedMessageQueue
Source
Mailbox.scala
def clear(): Unit

Attributes

Inherited from:
PriorityBlockingQueue
def comparator(): Comparator[_ >: Envelope <: <FromJavaObject>]

Attributes

Inherited from:
PriorityBlockingQueue
def contains(x$0: <FromJavaObject>): Boolean

Attributes

Inherited from:
PriorityBlockingQueue
def containsAll(x$0: Collection[_ <: <FromJavaObject>]): Boolean

Attributes

Inherited from:
AbstractCollection
def dequeue(): Envelope

Try to dequeue the next message from this queue, return null failing that.

Try to dequeue the next message from this queue, return null failing that.

Attributes

Inherited from:
UnboundedQueueBasedMessageQueue
Source
Mailbox.scala
def drainTo(x$0: Collection[_ >: Envelope <: <FromJavaObject>], x$1: Int): Int

Attributes

Inherited from:
PriorityBlockingQueue
def drainTo(x$0: Collection[_ >: Envelope <: <FromJavaObject>]): Int

Attributes

Inherited from:
PriorityBlockingQueue
def element(): Envelope

Attributes

Inherited from:
AbstractQueue
def enqueue(receiver: ActorRef, handle: Envelope): Unit

Try to enqueue the message to this queue, or throw an exception.

Try to enqueue the message to this queue, or throw an exception.

Attributes

Inherited from:
UnboundedQueueBasedMessageQueue
Source
Mailbox.scala
def forEach(x$0: Consumer[_ >: Envelope <: <FromJavaObject>]): Unit

Attributes

Inherited from:
PriorityBlockingQueue

Indicates whether this queue is non-empty.

Indicates whether this queue is non-empty.

Attributes

Inherited from:
QueueBasedMessageQueue
Source
Mailbox.scala
def isEmpty(): Boolean

Attributes

Inherited from:
AbstractCollection
def iterator(): Iterator[Envelope]

Attributes

Inherited from:
PriorityBlockingQueue

Should return the current number of messages held in this queue; may always return 0 if no other value is available efficiently. Do not use this for testing for presence of messages, use hasMessages instead.

Should return the current number of messages held in this queue; may always return 0 if no other value is available efficiently. Do not use this for testing for presence of messages, use hasMessages instead.

Attributes

Inherited from:
QueueBasedMessageQueue
Source
Mailbox.scala
def offer(x$0: Envelope, x$1: Long, x$2: TimeUnit): Boolean

Attributes

Inherited from:
PriorityBlockingQueue
def offer(x$0: Envelope): Boolean

Attributes

Inherited from:
PriorityBlockingQueue
def parallelStream(): Stream[Envelope]

Attributes

Inherited from:
Collection
def peek(): Envelope

Attributes

Inherited from:
PriorityBlockingQueue
def poll(x$0: Long, x$1: TimeUnit): Envelope

Attributes

Inherited from:
PriorityBlockingQueue
def poll(): Envelope

Attributes

Inherited from:
PriorityBlockingQueue
def put(x$0: Envelope): Unit

Attributes

Inherited from:
PriorityBlockingQueue

Attributes

Inherited from:
PriorityBlockingQueue
def remove(x$0: <FromJavaObject>): Boolean

Attributes

Inherited from:
PriorityBlockingQueue
def remove(): Envelope

Attributes

Inherited from:
AbstractQueue
def removeAll(x$0: Collection[_ <: <FromJavaObject>]): Boolean

Attributes

Inherited from:
PriorityBlockingQueue
def removeIf(x$0: Predicate[_ >: Envelope <: <FromJavaObject>]): Boolean

Attributes

Inherited from:
PriorityBlockingQueue
def retainAll(x$0: Collection[_ <: <FromJavaObject>]): Boolean

Attributes

Inherited from:
PriorityBlockingQueue
def size(): Int

Attributes

Inherited from:
PriorityBlockingQueue
def spliterator(): Spliterator[Envelope]

Attributes

Inherited from:
PriorityBlockingQueue
def stream(): Stream[Envelope]

Attributes

Inherited from:
Collection
def take(): Envelope

Attributes

Inherited from:
PriorityBlockingQueue
def toArray[T <: <FromJavaObject>](x$0: Array[Object & T]): Array[Object & T]

Attributes

Inherited from:
PriorityBlockingQueue
def toArray(): Array[<FromJavaObject>]

Attributes

Inherited from:
PriorityBlockingQueue
def toArray[T <: <FromJavaObject>](x$0: IntFunction[Array[Object & T]]): Array[Object & T]

Attributes

Inherited from:
Collection
def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Inherited from:
PriorityBlockingQueue