abstract class Call

Methods

__construct(StreamState $state, string $method, string $peer, array|callable $deserialize, Deadline $deadline, RetryPolicy|null $retryPolicy = null, Closure|null $attemptFactory = null, RetryBackoff|null $retryBackoff = null)

Create an active call around its initial transport attempt.

metadata()

Return the server's initial metadata.

trailers()

Return the server's trailing metadata.

status()

Return the final gRPC status without throwing for an RPC error.

string
peer()

Return the normalized peer authority selected for this call.

Message
waitForUnaryResponse()

Resolve and cache a unary response for every concurrent waiter.

Message|null
readResponse()

Read and deserialize the next response message.

void
beginReading()

Claim this call's single streaming response reader.

void
endReading()

Release this call's streaming response reader.

void
configureWriter(Connection $connection, FrameEncoder $requestEncoder, Compression $requestCompression)

Configure client-streaming request writes.

void
writeRequest(Message $message)

Write one client-streaming request message.

void
finishWrites()

Half-close the client-streaming request body.

Details

at line 72
protected __construct(StreamState $state, string $method, string $peer, array|callable $deserialize, Deadline $deadline, RetryPolicy|null $retryPolicy = null, Closure|null $attemptFactory = null, RetryBackoff|null $retryBackoff = null)

Create an active call around its initial transport attempt.

Parameters

StreamState $state
string $method
string $peer
array|callable $deserialize
Deadline $deadline
RetryPolicy|null $retryPolicy
Closure|null $attemptFactory
RetryBackoff|null $retryBackoff

at line 107
Metadata metadata()

Return the server's initial metadata.

Return Value

Metadata

at line 152
Metadata trailers()

Return the server's trailing metadata.

Return Value

Metadata

at line 182
Status status()

Return the final gRPC status without throwing for an RPC error.

Return Value

Status

at line 211
string peer()

Return the normalized peer authority selected for this call.

Return Value

string

at line 219
protected Message waitForUnaryResponse()

Resolve and cache a unary response for every concurrent waiter.

Return Value

Message

at line 264
protected Message|null readResponse()

Read and deserialize the next response message.

Return Value

Message|null

at line 274
protected void beginReading()

Claim this call's single streaming response reader.

Return Value

void

at line 286
protected void endReading()

Release this call's streaming response reader.

Return Value

void

at line 294
protected void configureWriter(Connection $connection, FrameEncoder $requestEncoder, Compression $requestCompression)

Configure client-streaming request writes.

Parameters

Connection $connection
FrameEncoder $requestEncoder
Compression $requestCompression

Return Value

void

at line 316
protected void writeRequest(Message $message)

Write one client-streaming request message.

Parameters

Message $message

Return Value

void

at line 376
protected void finishWrites()

Half-close the client-streaming request body.

Return Value

void