CallingThreadMailbox

org.apache.pekko.testkit.CallingThreadMailbox
class CallingThreadMailbox(_receiver: Cell, val mailboxType: MailboxType)

Attributes

Source
CallingThreadDispatcher.scala
Graph
Supertypes
trait Runnable
class ForkJoinTask[Unit]
trait Serializable
trait Future[Unit]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def cleanUp(): Unit

Overridable callback to clean up the mailbox, called when an actor is unregistered. By default it dequeues all system messages + messages and ships them to the owning actors' systems' DeadLetterMailbox

Overridable callback to clean up the mailbox, called when an actor is unregistered. By default it dequeues all system messages + messages and ships them to the owning actors' systems' DeadLetterMailbox

Attributes

Definition Classes
Source
CallingThreadDispatcher.scala
override 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

Definition Classes
Source
CallingThreadDispatcher.scala
override def enqueue(receiver: ActorRef, msg: 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

Definition Classes
Source
CallingThreadDispatcher.scala
override def hasMessages: Boolean

Indicates whether this queue is non-empty.

Indicates whether this queue is non-empty.

Attributes

Definition Classes
Source
CallingThreadDispatcher.scala
override def numberOfMessages: Int

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

Definition Classes
Source
CallingThreadDispatcher.scala

Inherited methods

final def becomeClosed(): Boolean

set new primary status Closed. Caller does not need to worry about whether status was Scheduled or not.

set new primary status Closed. Caller does not need to worry about whether status was Scheduled or not.

Attributes

Inherited from:
Mailbox (hidden)
Source
Mailbox.scala
def cancel(x$0: Boolean): Boolean

Attributes

Inherited from:
ForkJoinTask

Attributes

Inherited from:
ForkJoinTask
def complete(x$0: Unit): Unit

Attributes

Inherited from:
ForkJoinTask
def completeExceptionally(x$0: Throwable): Unit

Attributes

Inherited from:
ForkJoinTask
final def currentStatus: Status

Attributes

Inherited from:
Mailbox (hidden)
Source
Mailbox.scala

Attributes

Inherited from:
Mailbox (hidden)
Source
Mailbox.scala
final override def exec(): Boolean

Attributes

Definition Classes
Mailbox -> ForkJoinTask
Inherited from:
Mailbox (hidden)
Source
Mailbox.scala
final def fork(): ForkJoinTask[V]

Attributes

Inherited from:
ForkJoinTask
final def get(x$0: Long, x$1: TimeUnit): V

Attributes

Inherited from:
ForkJoinTask
final def get(): V

Attributes

Inherited from:
ForkJoinTask
final def getException(): Throwable

Attributes

Inherited from:
ForkJoinTask
final def getForkJoinTaskTag(): Short

Attributes

Inherited from:
ForkJoinTask
final override def getRawResult(): Unit

Attributes

Definition Classes
Mailbox -> ForkJoinTask
Inherited from:
Mailbox (hidden)
Source
Mailbox.scala
final def invoke(): V

Attributes

Inherited from:
ForkJoinTask
final def isCancelled(): Boolean

Attributes

Inherited from:
ForkJoinTask
final def isClosed: Boolean

Attributes

Inherited from:
Mailbox (hidden)
Source
Mailbox.scala

Attributes

Inherited from:
ForkJoinTask

Attributes

Inherited from:
ForkJoinTask
final def isDone(): Boolean

Attributes

Inherited from:
ForkJoinTask
final def isScheduled: Boolean

Attributes

Inherited from:
Mailbox (hidden)
Source
Mailbox.scala
final def isSuspended: Boolean

Attributes

Inherited from:
Mailbox (hidden)
Source
Mailbox.scala
final def join(): V

Attributes

Inherited from:
ForkJoinTask

Will at least try to process all queued system messages: in case of failure simply drop and go on to the next, because there is nothing to restart here (failure is in ActorCell somewhere …). In case the mailbox becomes closed (because of processing a Terminate message), dump all already dequeued message to deadLetters.

Will at least try to process all queued system messages: in case of failure simply drop and go on to the next, because there is nothing to restart here (failure is in ActorCell somewhere …). In case the mailbox becomes closed (because of processing a Terminate message), dump all already dequeued message to deadLetters.

Attributes

Inherited from:
interruption=e caseNonFatal(e)=> Mailbox.this.actor.system.eventStream.publish(Error.apply(`e₂`,Mailbox.this.actor.self.path.toString(),this.getClass[Mailbox](),"errorwhileenqueuing".+(`msg₂`).+("todeadLetters:").+(`e₂`.getMessage()))) } } if(interruption.ne(null)){ Thread.interrupted() throwinterruption }else() }">Mailbox (hidden)
Source
Mailbox.scala
final def quietlyComplete(): Unit

Attributes

Inherited from:
ForkJoinTask
final def quietlyInvoke(): Unit

Attributes

Inherited from:
ForkJoinTask
final def quietlyJoin(): Unit

Attributes

Inherited from:
ForkJoinTask

Attributes

Inherited from:
ForkJoinTask
final def resume(): Boolean

Reduce the suspend count by one. Caller does not need to worry about whether status was Scheduled or not.

Reduce the suspend count by one. Caller does not need to worry about whether status was Scheduled or not.

Attributes

Returns

true if the suspend count reached zero

Inherited from:
Mailbox (hidden)
Source
Mailbox.scala
final override def run(): Unit

Attributes

Definition Classes
Mailbox -> Runnable
Inherited from:
Mailbox (hidden)
Source
Mailbox.scala
def setActor(cell: ActorCell): Unit

Attributes

Inherited from:
Mailbox (hidden)
Source
Mailbox.scala
final def setAsIdle(): Boolean

Reset Scheduled status, keeping primary status as is.

Reset Scheduled status, keeping primary status as is.

Attributes

Inherited from:
Mailbox (hidden)
Source
Mailbox.scala
final def setAsScheduled(): Boolean

Set Scheduled status, keeping primary status as is.

Set Scheduled status, keeping primary status as is.

Attributes

Inherited from:
Mailbox (hidden)
Source
Mailbox.scala
final def setForkJoinTaskTag(x$0: Short): Short

Attributes

Inherited from:
ForkJoinTask
final override def setRawResult(unit: Unit): Unit

Attributes

Definition Classes
Mailbox -> ForkJoinTask
Inherited from:
Mailbox (hidden)
Source
Mailbox.scala

Attributes

Inherited from:
Mailbox (hidden)
Source
Mailbox.scala
final def suspend(): Boolean

Increment the suspend count by one. Caller does not need to worry about whether status was Scheduled or not.

Increment the suspend count by one. Caller does not need to worry about whether status was Scheduled or not.

Attributes

Returns

true if the previous suspend count was zero

Inherited from:
Mailbox (hidden)
Source
Mailbox.scala
final def suspendCount: Int

Attributes

Inherited from:
Mailbox (hidden)
Source
Mailbox.scala
final def systemDrain(newContents: LatestFirstSystemMessageList): EarliestFirstSystemMessageList

Attributes

Inherited from:
DefaultSystemMessageQueue (hidden)
Source
Mailbox.scala
final def systemEnqueue(receiver: ActorRef, message: SystemMessage): Unit

Attributes

Inherited from:
DefaultSystemMessageQueue (hidden)
Source
Mailbox.scala

Attributes

Inherited from:
ForkJoinTask

Concrete fields

val ctdLock: ReentrantLock

Attributes

Source
CallingThreadDispatcher.scala
override val messageQueue: MessageQueue

This is only a marker to be put in the messageQueue’s stead to make error messages pertaining to violated mailbox type requirements less cryptic.

This is only a marker to be put in the messageQueue’s stead to make error messages pertaining to violated mailbox type requirements less cryptic.

Attributes

Source
CallingThreadDispatcher.scala

Inherited fields

var actor: ActorCell

Attributes

Inherited from:
Mailbox (hidden)
Source
Mailbox.scala