public class HashMapAmpBroker extends AbstractAmpBroker
Constructor and Description |
---|
HashMapAmpBroker() |
Modifier and Type | Method and Description |
---|---|
AmpActorRef |
addMailbox(java.lang.String address,
AmpMailbox mailbox)
Adds a mailbox (optional operation).
|
AmpActorRef |
getActorRef(java.lang.String address)
Returns a mailbox for the given address,
or null if the mailbox does not exist.
|
protected AmpMailbox |
getMailbox(java.lang.String address) |
close, getBrokerActor, query, removeMailbox, reply, send
public AmpActorRef getActorRef(java.lang.String address)
AmpBroker
getActorRef
in interface AmpBroker
getActorRef
in class AbstractAmpBroker
address
- the address of the mailboxpublic AmpActorRef addMailbox(java.lang.String address, AmpMailbox mailbox)
AmpBroker
addMailbox
in interface AmpBroker
addMailbox
in class AbstractAmpBroker
protected AmpMailbox getMailbox(java.lang.String address)