public class TriadFirstRouter extends AbstractActor
Constructor and Description |
---|
TriadFirstRouter(java.lang.String uid,
ClusterRouteManager routeManager,
TriadOwner owner,
Broker broker,
BamTriadDispatcher.RemoteEnum isRemote) |
Modifier and Type | Method and Description |
---|---|
void |
message(java.lang.String to,
java.lang.String from,
java.io.Serializable payload)
Receives a unidirectional message.
|
void |
query(long id,
java.lang.String to,
java.lang.String from,
java.io.Serializable payload)
Receives a query call, acting as a service for
the query.
|
getAddress, getBroker, isClosed, messageError, queryError, queryResult, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAddress, getBroker, isClosed, messageError, queryError, queryResult
public TriadFirstRouter(java.lang.String uid, ClusterRouteManager routeManager, TriadOwner owner, Broker broker, BamTriadDispatcher.RemoteEnum isRemote)
public void message(java.lang.String to, java.lang.String from, java.io.Serializable payload)
AbstractMessageStream
message
in interface MessageStream
message
in class AbstractMessageStream
to
- the target actor's addressfrom
- the source actor's addresspayload
- the message payloadpublic void query(long id, java.lang.String to, java.lang.String from, java.io.Serializable payload)
AbstractMessageStream
query
in interface MessageStream
query
in class AbstractMessageStream
id
- the query identifier used to match requests with responsesto
- the service actor's addressfrom
- the client actor's addresspayload
- the query payload