akka.dispatch
Class BoundedMailbox

java.lang.Object
  extended by akka.dispatch.BoundedMailbox
All Implemented Interfaces:
MailboxType, ProducesMessageQueue<BoundedMailbox.MessageQueue>, java.io.Serializable, scala.Equals, scala.Product

public class BoundedMailbox
extends java.lang.Object
implements MailboxType, ProducesMessageQueue<BoundedMailbox.MessageQueue>, scala.Product, scala.Serializable

BoundedMailbox is the default bounded MailboxType used by Akka Actors.

See Also:
Serialized Form

Nested Class Summary
static class BoundedMailbox.MessageQueue
           
 
Constructor Summary
BoundedMailbox(ActorSystem.Settings settings, com.typesafe.config.Config config)
           
BoundedMailbox(int capacity, scala.concurrent.duration.FiniteDuration pushTimeOut)
           
 
Method Summary
 int capacity()
           
 MessageQueue create(scala.Option<ActorRef> owner, scala.Option<ActorSystem> system)
           
 scala.concurrent.duration.FiniteDuration pushTimeOut()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface scala.Product
productArity, productElement, productIterator, productPrefix
 
Methods inherited from interface scala.Equals
canEqual, equals
 

Constructor Detail

BoundedMailbox

public BoundedMailbox(int capacity,
                      scala.concurrent.duration.FiniteDuration pushTimeOut)

BoundedMailbox

public BoundedMailbox(ActorSystem.Settings settings,
                      com.typesafe.config.Config config)
Method Detail

capacity

public int capacity()

pushTimeOut

public scala.concurrent.duration.FiniteDuration pushTimeOut()

create

public final MessageQueue create(scala.Option<ActorRef> owner,
                                 scala.Option<ActorSystem> system)
Specified by:
create in interface MailboxType