com.caucho.bam.broker
Interface ManagedBroker

All Superinterfaces:
Broker, MessageStream
All Known Implementing Classes:
AbstractManagedBroker, HashMapBroker, HempBroker

public interface ManagedBroker
extends Broker

Broker is the hub which routes messages to mailboxes.


Method Summary
 void addMailbox(Mailbox mailbox)
          Adds a mailbox
 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)
           
 void removeMailbox(Mailbox mailbox)
          Removes a mailbox
 
Methods inherited from interface com.caucho.bam.broker.Broker
close, getBrokerMailbox, getMailbox
 
Methods inherited from interface com.caucho.bam.stream.MessageStream
getAddress, getBroker, isClosed, message, messageError, query, queryError, queryResult
 

Method Detail

addMailbox

void addMailbox(Mailbox mailbox)
Adds a mailbox

Specified by:
addMailbox in interface Broker

removeMailbox

void removeMailbox(Mailbox mailbox)
Removes a mailbox

Specified by:
removeMailbox in interface Broker

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: