Temporal Docs PHP SDK API Version 2.21 (latest release) Release notes

Documentation

ActivityClientInterface extends ClientContextInterface

Table of Contents

Methods

countExecutions()  : CountActivityExecutions
getHandle()  : ActivityHandle
listExecutions()  : Paginator<string|int, ActivityExecutionInfo>
newActivityCompletionClient()  : ActivityCompletionClientInterface
start()  : ActivityHandle
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

getHandle()

public getHandle(non-empty-string $activityId[, string|null $runId = null ][, non-empty-string|null $namespace = null ]) : ActivityHandle
Parameters
$activityId : non-empty-string
$runId : string|null = null
$namespace : non-empty-string|null = null
Return values
ActivityHandle

withDeadline()

Set the deadline for any service requests

public withDeadline(DateTimeInterface $deadline) : static
Parameters
$deadline : DateTimeInterface
Return values
static

withMetadata()

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
static

withTimeout()

All the service client calls will be made with the specified timeout.

public withTimeout(float $timeout) : static
Parameters
$timeout : float

in seconds

Return values
static
On this page

Search results