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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
message, messageError, query, queryError, queryResult
public java.lang.String getAddress()
getAddress
in interface MessageStream
getAddress
in class AbstractBrokerStream
public Broker getBroker()
getBroker
in interface MessageStream
public BamQueueFullHandler getQueueFullHandler()
getQueueFullHandler
in interface Broker
public void setQueueFullHandler(BamQueueFullHandler handler)
public Mailbox getBrokerMailbox()
getBrokerMailbox
in interface Broker
public Mailbox getMailbox(java.lang.String address)
AbstractBrokerStream
getMailbox
in interface Broker
getMailbox
in class AbstractBrokerStream
address
- the address of the mailboxpublic void addMailbox(java.lang.String address, Mailbox mailbox)
Broker
addMailbox
in interface Broker
public void removeMailbox(Mailbox mailbox)
Broker
removeMailbox
in interface Broker
public boolean isClosed()
isClosed
in interface MessageStream
isClosed
in class AbstractBrokerStream