class Call
More...
◆ __construct()
Grpc\Call::__construct |
( |
|
$channel_obj, |
|
|
|
$method, |
|
|
|
$deadline_obj, |
|
|
|
$host_override = "" |
|
) |
| |
Constructs a new instance of the Call class.
- Parameters
-
Channel | $channel_obj | The channel to associate the call with. Must not be closed. |
string | $method | The method to call |
Timeval | $deadline_obj | The deadline for completing the call |
string | $host_override | = "" The host is set by user (optional) |
◆ cancel()
Cancel the call.
This will cause the call to end with STATUS_CANCELLED if it has not already ended with another status.
- Returns
- void
◆ getPeer()
Get the endpoint this call/stream is connected to.
- Returns
- string The URI of the endpoint
◆ setCredentials()
Grpc\Call::setCredentials |
( |
|
$creds_obj | ) |
|
Set the CallCredentials for this call.
- Parameters
-
- Returns
- int The error code
◆ startBatch()
Grpc\Call::startBatch |
( |
|
$array | ) |
|
Start a batch of RPC actions.
- Parameters
-
array | $array | Array of actions to take |
- Returns
- object Object with results of all actions
The documentation for this class was generated from the following file: