public abstract class AbstractManagedBroker extends AbstractBroker implements ManagedBroker
Constructor and Description |
---|
AbstractManagedBroker() |
Modifier and Type | Method and Description |
---|---|
void |
addMailbox(java.lang.String address,
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) |
protected Mailbox |
createMailbox(MessageStream actorStream,
MailboxType mailboxType) |
protected Mailbox |
createMailbox(java.lang.String address,
MessageStream actorStream,
MailboxType mailboxType) |
boolean |
isClosed()
Returns true if the broker has been closed
|
void |
removeMailbox(Mailbox mailbox)
Removes a mailbox.
|
close, getAddress, getBroker, getBrokerMailbox, getMailbox, getQueueFullHandler, setQueueFullHandler
getQueryErrorStream, message, messageError, query, queryError, queryResult, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close, getBrokerMailbox, getMailbox, getQueueFullHandler
getAddress, getBroker, message, messageError, query, queryError, queryResult
public void addMailbox(java.lang.String address, Mailbox mailbox)
addMailbox
in interface Broker
addMailbox
in interface ManagedBroker
addMailbox
in class AbstractBroker
public void removeMailbox(Mailbox mailbox)
removeMailbox
in interface Broker
removeMailbox
in interface ManagedBroker
removeMailbox
in class AbstractBroker
public Agent createAgent(MessageStream actorStream)
createAgent
in interface ManagedBroker
public Agent createAgent(MessageStream actorStream, MailboxType mailboxType)
createAgent
in interface ManagedBroker
protected Mailbox createMailbox(MessageStream actorStream, MailboxType mailboxType)
protected Mailbox createMailbox(java.lang.String address, MessageStream actorStream, MailboxType mailboxType)
public Mailbox createClient(Mailbox next, java.lang.String uid, java.lang.String resource)
createClient
in interface ManagedBroker
public boolean isClosed()
isClosed
in interface MessageStream
isClosed
in class AbstractBroker