public abstract class AbstractBroker extends AbstractBrokerStream implements Broker
| Constructor and Description |
|---|
AbstractBroker() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMailbox(java.lang.String address,
Mailbox mailbox)
Adds a mailbox (optional operation).
|
void |
close()
Close the Broker
|
java.lang.String |
getAddress()
Returns the broker's address, i.e.
|
Broker |
getBroker()
The broker returns itself for the broker.
|
Mailbox |
getBrokerMailbox()
Returns a mailbox to the broker itself
|
Mailbox |
getMailbox(java.lang.String address)
Returns the actor stream for the given address.
|
BamQueueFullHandler |
getQueueFullHandler() |
boolean |
isClosed()
Returns true if the broker has been closed
|
void |
removeMailbox(Mailbox mailbox)
Removes a mailbox (optional operation).
|
void |
setQueueFullHandler(BamQueueFullHandler handler) |
getQueryErrorStream, message, messageError, query, queryError, queryResult, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitmessage, messageError, query, queryError, queryResultpublic java.lang.String getAddress()
getAddress in interface MessageStreamgetAddress in class AbstractBrokerStreampublic Broker getBroker()
getBroker in interface MessageStreampublic BamQueueFullHandler getQueueFullHandler()
getQueueFullHandler in interface Brokerpublic void setQueueFullHandler(BamQueueFullHandler handler)
public Mailbox getBrokerMailbox()
getBrokerMailbox in interface Brokerpublic Mailbox getMailbox(java.lang.String address)
AbstractBrokerStreamgetMailbox in interface BrokergetMailbox in class AbstractBrokerStreamaddress - the address of the mailboxpublic void addMailbox(java.lang.String address,
Mailbox mailbox)
BrokeraddMailbox in interface Brokerpublic void removeMailbox(Mailbox mailbox)
BrokerremoveMailbox in interface Brokerpublic boolean isClosed()
isClosed in interface MessageStreamisClosed in class AbstractBrokerStream