ClientContextInterface
in
Table of Contents
Methods
- withDeadline() : static
- Set the deadline for any service requests
- withMetadata() : static
- A metadata map to send to the server
- withRetryOptions() : static
- withTimeout() : static
- All the service client calls will be made with the specified timeout.
Methods
withDeadline()
Set the deadline for any service requests
public
withDeadline(DateTimeInterface $deadline) : static
Parameters
- $deadline : DateTimeInterface
Return values
staticwithMetadata()
A metadata map to send to the server
public
withMetadata(array<string, array<string|int, string>> $metadata) : static
Parameters
- $metadata : array<string, array<string|int, string>>
Return values
staticwithRetryOptions()
public
withRetryOptions(RpcRetryOptions $options) : static
Parameters
- $options : RpcRetryOptions
Return values
staticwithTimeout()
All the service client calls will be made with the specified timeout.
public
withTimeout(float $timeout) : static
Parameters
- $timeout : float
-
in seconds