|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface QuerySender
QuerySender is a convenience API for an Actor to send and manage queries.
| Method Summary | |
|---|---|
java.lang.String |
getAddress()
Returns the Actor's address used for all "from" parameters. |
Broker |
getBroker()
The underlying broker. |
QueryManager |
getQueryManager()
|
void |
message(java.lang.String to,
java.io.Serializable payload)
Sends a unidirectional message to an ActorHolder,
addressed by the Actor's address. |
java.io.Serializable |
query(java.lang.String to,
java.io.Serializable payload)
Sends a query information call (get) to an actor, blocking until the actor responds with a result or an error. |
java.io.Serializable |
query(java.lang.String to,
java.io.Serializable payload,
long timeout)
Sends a query information call to an actor, blocking until the actor responds with a result or an error. |
void |
query(java.lang.String to,
java.io.Serializable payload,
QueryCallback callback)
Sends a query information call (get) to an actor, providing a callback to receive the result or error. |
| Method Detail |
|---|
java.lang.String getAddress()
Broker getBroker()
void message(java.lang.String to,
java.io.Serializable payload)
ActorHolder,
addressed by the Actor's address.
to - the target actor's addresspayload - the message payloadQueryManager getQueryManager()
java.io.Serializable query(java.lang.String to,
java.io.Serializable payload)
queryGet acts as a service and the
caller acts as a client. Because BAM Actors are symmetrical, all
Actors can act as services and clients for different RPC calls.
The target actor MUST send a queryResult or
queryError to the client using the same id,
because RPC clients rely on a response.
to - the target actor's addresspayload - the query payload
java.io.Serializable query(java.lang.String to,
java.io.Serializable payload,
long timeout)
query acts as a service and the
caller acts as a client. Because BAM Actors are symmetrical, all
Actors can act as services and clients for different RPC calls.
The target actor MUST send a queryResult or
queryError to the client using the same id,
because RPC clients rely on a response.
to - the target actor's addresspayload - the query payloadtimeout - time spent waiting for the query to return
void query(java.lang.String to,
java.io.Serializable payload,
QueryCallback callback)
queryGet acts as a service and the
caller acts as a client. Because BAM Actors are symmetrical, all
Actors can act as services and clients for different RPC calls.
The target actor MUST send a queryResult or
queryError to the client using the same id,
because RPC clients rely on a response.
to - the target actor's addresspayload - the query payloadcallback - the application's callback for the result
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||