|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Broker
Broker is the hub which routes messages to mailboxes.
Method Summary | |
---|---|
void |
addMailbox(java.lang.String address,
Mailbox mailbox)
Adds a mailbox (optional operation). |
void |
close()
Close the Broker |
Mailbox |
getBrokerMailbox()
Returns the mailbox to the broker itself. |
Mailbox |
getMailbox(java.lang.String address)
Returns a mailbox for the given address, or null if the mailbox does not exist. |
void |
removeMailbox(Mailbox mailbox)
Removes a mailbox (optional operation). |
Methods inherited from interface com.caucho.bam.stream.MessageStream |
---|
getAddress, getBroker, isClosed, message, messageError, query, queryError, queryResult |
Method Detail |
---|
Mailbox getBrokerMailbox()
Mailbox getMailbox(java.lang.String address)
address
- the address of the mailbox
void addMailbox(java.lang.String address, Mailbox mailbox)
void removeMailbox(Mailbox mailbox)
void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |