public class GlobalTriadFirstRouter extends AbstractActor
Constructor and Description |
---|
GlobalTriadFirstRouter(java.lang.String uid,
ClusterRouteManager routeManager,
TriadOwner owner,
Broker broker) |
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 GlobalTriadFirstRouter(java.lang.String uid, ClusterRouteManager routeManager, TriadOwner owner, Broker broker)
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