com.caucho.bam.manager
Interface BamManager

All Known Implementing Classes:
SimpleBamManager

public interface BamManager

Broker is the hub which routes messages to mailboxes.


Method Summary
 void addActor(java.lang.String address, ManagedActor actor)
          Adds an actor and creates a default mailbox
 void addMailbox(Mailbox mailbox)
          Adds a mailbox to the broker.
 Agent createAgent(MessageStream actorStream)
          Creates an agent
 Agent createAgent(MessageStream actorStream, MailboxType mailboxType)
          Creates an agent
 Mailbox createClient(Mailbox next, java.lang.String uid, java.lang.String resource)
           
 ActorSender createClient(java.lang.String uid, java.lang.String resource)
           
 Broker getBroker()
          Returns the managed broker
 void removeMailbox(Mailbox mailbox)
          Removes a mailbox
 

Method Detail

getBroker

Broker getBroker()
Returns the managed broker


addMailbox

void addMailbox(Mailbox mailbox)
Adds a mailbox to the broker.


removeMailbox

void removeMailbox(Mailbox mailbox)
Removes a mailbox


addActor

void addActor(java.lang.String address,
              ManagedActor actor)
Adds an actor and creates a default mailbox


createAgent

Agent createAgent(MessageStream actorStream)
Creates an agent


createAgent

Agent createAgent(MessageStream actorStream,
                  MailboxType mailboxType)
Creates an agent


createClient

Mailbox createClient(Mailbox next,
                     java.lang.String uid,
                     java.lang.String resource)
Parameters:
actorStream -
uid -
resource -
Returns:

createClient

ActorSender createClient(java.lang.String uid,
                         java.lang.String resource)