title: Akka: actor current mailbox size or number of messages awaiting processing
body: <p>I am trying to find out number of pending queue items which awaiting to be processed by the actor.</p>
  
  <p>I am sure there must be a method to which you can refer to from actor context or from context.system.mailboxes etc</p>
  
  <p>Here is code example:</p>
  
  <pre><code>class SomeActor extends Actor {
    override def receive = {
  
      case ScanExisting =&gt; {
        val queueSize = context.system.mailboxes... size ??
  }
  </code></pre>