com.caucho.bam.mailbox
Interface Mailbox

All Superinterfaces:
MessageStream
All Known Implementing Classes:
ActorMailbox, DualSizeMailbox, MultiworkerMailbox, PassthroughMailbox

public interface Mailbox
extends MessageStream

Mailbox for an actor


Method Summary
 void close()
          Closes the mailbox
 MessageStream getActorStream()
          Returns the actor stream for the actor itself.
 int getSize()
          Returns the queue size
 
Methods inherited from interface com.caucho.bam.stream.MessageStream
getAddress, getBroker, isClosed, message, messageError, query, queryError, queryResult
 

Method Detail

getActorStream

MessageStream getActorStream()
Returns the actor stream for the actor itself.


getSize

int getSize()
Returns the queue size


close

void close()
Closes the mailbox