public interface AmpBroker
Modifier and Type | Method and Description |
---|---|
AmpActorRef |
addMailbox(java.lang.String address,
AmpMailbox mailbox)
Adds a mailbox (optional operation).
|
void |
close()
Close the broker.
|
AmpActorRef |
getActorRef(java.lang.String address)
Returns a mailbox for the given address,
or null if the mailbox does not exist.
|
AmpActorRef |
getBrokerActor()
Returns the mailbox to the router itself.
|
void |
query(long id,
java.lang.String to,
java.lang.String from,
AmpEncoder encoder,
java.lang.String methodName,
java.lang.Object... args) |
void |
removeMailbox(java.lang.String address,
AmpMailbox mailbox)
Removes a mailbox (optional operation).
|
void |
reply(long id,
java.lang.String to,
java.lang.String from,
AmpEncoder encoder,
java.lang.Object result) |
void |
send(java.lang.String to,
java.lang.String from,
AmpEncoder encoder,
java.lang.String methodName,
java.lang.Object... args) |
AmpActorRef getBrokerActor()
AmpActorRef getActorRef(java.lang.String address)
address
- the address of the mailboxvoid send(java.lang.String to, java.lang.String from, AmpEncoder encoder, java.lang.String methodName, java.lang.Object... args)
void query(long id, java.lang.String to, java.lang.String from, AmpEncoder encoder, java.lang.String methodName, java.lang.Object... args)
void reply(long id, java.lang.String to, java.lang.String from, AmpEncoder encoder, java.lang.Object result)
AmpActorRef addMailbox(java.lang.String address, AmpMailbox mailbox)
void removeMailbox(java.lang.String address, AmpMailbox mailbox)
void close()