|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.amp.broker.AbstractAmpBroker
com.caucho.amp.impl.HashMapAmpBroker
public class HashMapAmpBroker
AmpRouter routes messages to mailboxes.
Constructor Summary | |
---|---|
HashMapAmpBroker()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class com.caucho.amp.broker.AbstractAmpBroker |
---|
close, getBrokerActor, query, removeMailbox, reply, send |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HashMapAmpBroker()
Method Detail |
---|
public AmpActorRef getActorRef(java.lang.String address)
AmpBroker
getActorRef
in interface AmpBroker
getActorRef
in class AbstractAmpBroker
address
- the address of the mailbox
public AmpActorRef addMailbox(java.lang.String address, AmpMailbox mailbox)
AmpBroker
addMailbox
in interface AmpBroker
addMailbox
in class AbstractAmpBroker
protected AmpMailbox getMailbox(java.lang.String address)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |