c

akka.testkit

CallingThreadMailbox

class CallingThreadMailbox extends Mailbox with DefaultSystemMessageQueue

Source
CallingThreadDispatcher.scala
Linear Supertypes
DefaultSystemMessageQueue, Mailbox, Runnable, SystemMessageQueue, ForkJoinTask[Unit], Serializable, Future[Unit], AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CallingThreadMailbox
  2. DefaultSystemMessageQueue
  3. Mailbox
  4. Runnable
  5. SystemMessageQueue
  6. ForkJoinTask
  7. Serializable
  8. Future
  9. AnyRef
  10. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new CallingThreadMailbox(_receiver: Cell, mailboxType: MailboxType)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from CallingThreadMailbox toany2stringadd[CallingThreadMailbox] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (CallingThreadMailbox, B)
    Implicit
    This member is added by an implicit conversion from CallingThreadMailbox toArrowAssoc[CallingThreadMailbox] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. var _statusDoNotCallMeDirectly: Status
    Attributes
    protected
    Definition Classes
    Mailbox
  7. var _systemQueueDoNotCallMeDirectly: SystemMessage
    Attributes
    protected
    Definition Classes
    Mailbox
  8. var actor: ActorCell
    Definition Classes
    Mailbox
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. final def becomeClosed(): Boolean

    set new primary status Closed.

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

    Definition Classes
    Mailbox
    Annotations
    @tailrec()
  11. final def canBeScheduledForExecution(hasMessageHint: Boolean, hasSystemMessageHint: Boolean): Boolean
    Definition Classes
    Mailbox
  12. def cancel(arg0: Boolean): Boolean
    Definition Classes
    ForkJoinTask → Future
  13. def cleanUp(): Unit

    Overridable callback to clean up the mailbox, called when an actor is unregistered.

    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

    Definition Classes
    CallingThreadMailbox → Mailbox
  14. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  15. final def compareAndSetForkJoinTaskTag(arg0: Short, arg1: Short): Boolean
    Definition Classes
    ForkJoinTask
  16. def complete(arg0: Unit): Unit
    Definition Classes
    ForkJoinTask
  17. def completeExceptionally(arg0: Throwable): Unit
    Definition Classes
    ForkJoinTask
  18. val ctdLock: ReentrantLock
  19. final def currentStatus: Status
    Definition Classes
    Mailbox
    Annotations
    @inline()
  20. 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.

    Definition Classes
    CallingThreadMailbox → Mailbox
  21. def dispatcher: MessageDispatcher
    Definition Classes
    Mailbox
  22. 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.

    Definition Classes
    CallingThreadMailbox → Mailbox
  23. def ensuring(cond: (CallingThreadMailbox) => Boolean, msg: => Any): CallingThreadMailbox
    Implicit
    This member is added by an implicit conversion from CallingThreadMailbox toEnsuring[CallingThreadMailbox] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  24. def ensuring(cond: (CallingThreadMailbox) => Boolean): CallingThreadMailbox
    Implicit
    This member is added by an implicit conversion from CallingThreadMailbox toEnsuring[CallingThreadMailbox] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  25. def ensuring(cond: Boolean, msg: => Any): CallingThreadMailbox
    Implicit
    This member is added by an implicit conversion from CallingThreadMailbox toEnsuring[CallingThreadMailbox] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  26. def ensuring(cond: Boolean): CallingThreadMailbox
    Implicit
    This member is added by an implicit conversion from CallingThreadMailbox toEnsuring[CallingThreadMailbox] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  27. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  29. final def exec(): Boolean
    Definition Classes
    Mailbox → ForkJoinTask
  30. final def fork(): ForkJoinTask[Unit]
    Definition Classes
    ForkJoinTask
  31. final def get(arg0: Long, arg1: TimeUnit): Unit
    Definition Classes
    ForkJoinTask → Future
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @throws(classOf[java.util.concurrent.ExecutionException]) @throws(classOf[java.util.concurrent.TimeoutException])
  32. final def get(): Unit
    Definition Classes
    ForkJoinTask → Future
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @throws(classOf[java.util.concurrent.ExecutionException])
  33. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  34. final def getException(): Throwable
    Definition Classes
    ForkJoinTask
  35. final def getForkJoinTaskTag(): Short
    Definition Classes
    ForkJoinTask
  36. final def getRawResult(): Unit
    Definition Classes
    Mailbox → ForkJoinTask
  37. def hasMessages: Boolean

    Indicates whether this queue is non-empty.

    Indicates whether this queue is non-empty.

    Definition Classes
    CallingThreadMailbox → Mailbox
  38. def hasSystemMessages: Boolean
    Definition Classes
    DefaultSystemMessageQueue
  39. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  40. final def invoke(): Unit
    Definition Classes
    ForkJoinTask
  41. final def isCancelled(): Boolean
    Definition Classes
    ForkJoinTask → Future
  42. final def isClosed: Boolean
    Definition Classes
    Mailbox
    Annotations
    @inline()
  43. final def isCompletedAbnormally(): Boolean
    Definition Classes
    ForkJoinTask
  44. final def isCompletedNormally(): Boolean
    Definition Classes
    ForkJoinTask
  45. final def isDone(): Boolean
    Definition Classes
    ForkJoinTask → Future
  46. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  47. final def isScheduled: Boolean
    Definition Classes
    Mailbox
    Annotations
    @inline()
  48. final def isSuspended: Boolean
    Definition Classes
    Mailbox
    Annotations
    @inline()
  49. final def join(): Unit
    Definition Classes
    ForkJoinTask
  50. val mailboxType: MailboxType
  51. 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.

    Definition Classes
    CallingThreadMailbox → Mailbox
  52. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  53. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  54. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  55. 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.

    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.

    Definition Classes
    CallingThreadMailbox → Mailbox
  56. final def processAllSystemMessages(): Unit

    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 …).

    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.

    Definition Classes
    Mailbox
  57. def queue: MessageQueue
  58. final def quietlyComplete(): Unit
    Definition Classes
    ForkJoinTask
  59. final def quietlyInvoke(): Unit
    Definition Classes
    ForkJoinTask
  60. final def quietlyJoin(): Unit
    Definition Classes
    ForkJoinTask
  61. def reinitialize(): Unit
    Definition Classes
    ForkJoinTask
  62. final def resume(): Boolean

    Reduce the suspend count by one.

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

    returns

    true if the suspend count reached zero

    Definition Classes
    Mailbox
    Annotations
    @tailrec()
  63. final def run(): Unit
    Definition Classes
    Mailbox → Runnable
  64. val self: ActorRef
  65. def setActor(cell: ActorCell): Unit
    Definition Classes
    Mailbox
  66. final def setAsIdle(): Boolean

    Reset Scheduled status, keeping primary status as is.

    Reset Scheduled status, keeping primary status as is.

    Definition Classes
    Mailbox
    Annotations
    @tailrec()
  67. final def setAsScheduled(): Boolean

    Set Scheduled status, keeping primary status as is.

    Set Scheduled status, keeping primary status as is.

    Definition Classes
    Mailbox
    Annotations
    @tailrec()
  68. final def setForkJoinTaskTag(arg0: Short): Short
    Definition Classes
    ForkJoinTask
  69. final def setRawResult(unit: Unit): Unit
    Definition Classes
    Mailbox → ForkJoinTask
  70. final def setStatus(newStatus: Status): Unit
    Attributes
    protected
    Definition Classes
    Mailbox
    Annotations
    @inline()
  71. final def shouldProcessMessage: Boolean
    Definition Classes
    Mailbox
    Annotations
    @inline()
  72. final def suspend(): Boolean

    Increment the suspend count by one.

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

    returns

    true if the previous suspend count was zero

    Definition Classes
    Mailbox
    Annotations
    @tailrec()
  73. final def suspendCount: Int
    Definition Classes
    Mailbox
    Annotations
    @inline()
  74. val suspendSwitch: Switch
  75. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  76. val system: ActorSystem
  77. final def systemDrain(newContents: LatestFirstSystemMessageList): EarliestFirstSystemMessageList
    Definition Classes
    DefaultSystemMessageQueue
    Annotations
    @tailrec()
  78. final def systemEnqueue(receiver: ActorRef, message: SystemMessage): Unit
    Definition Classes
    DefaultSystemMessageQueue
    Annotations
    @tailrec()
  79. final def systemQueueGet: LatestFirstSystemMessageList
    Attributes
    protected
    Definition Classes
    Mailbox
  80. final def systemQueuePut(_old: LatestFirstSystemMessageList, _new: LatestFirstSystemMessageList): Boolean
    Attributes
    protected
    Definition Classes
    Mailbox
  81. def toString(): String
    Definition Classes
    AnyRef → Any
  82. def tryUnfork(): Boolean
    Definition Classes
    ForkJoinTask
  83. final def updateStatus(oldStatus: Status, newStatus: Status): Boolean
    Attributes
    protected
    Definition Classes
    Mailbox
    Annotations
    @inline()
  84. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  85. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  86. 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)

  2. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from CallingThreadMailbox toStringFormat[CallingThreadMailbox] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.12.16) Use formatString.format(value) instead of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

  3. def [B](y: B): (CallingThreadMailbox, B)
    Implicit
    This member is added by an implicit conversion from CallingThreadMailbox toArrowAssoc[CallingThreadMailbox] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from DefaultSystemMessageQueue

Inherited from Mailbox

Inherited from Runnable

Inherited from SystemMessageQueue

Inherited from ForkJoinTask[Unit]

Inherited from Serializable

Inherited from Future[Unit]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromCallingThreadMailbox to any2stringadd[CallingThreadMailbox]

Inherited by implicit conversion StringFormat fromCallingThreadMailbox to StringFormat[CallingThreadMailbox]

Inherited by implicit conversion Ensuring fromCallingThreadMailbox to Ensuring[CallingThreadMailbox]

Inherited by implicit conversion ArrowAssoc fromCallingThreadMailbox to ArrowAssoc[CallingThreadMailbox]

Ungrouped