ActivityContext
in package
FinalYes
Activity attempt metadata and heartbeat/cancellation support.
Table of Contents
Properties
- $activityAttemptId : string
- $activityType : string
- $attemptNumber : int
- $leaseOwner : string
- $taskId : string
- $client : Client
- $heartbeatRequest : Closure|null
- $localHeartbeat : Closure|null
Methods
- __construct() : mixed
- heartbeat() : void
Properties
$activityAttemptId read-only
public
string
$activityAttemptId
$activityType read-only
public
string
$activityType
$attemptNumber read-only
public
int
$attemptNumber
$leaseOwner read-only
public
string
$leaseOwner
$taskId read-only
public
string
$taskId
$client read-only
private
Client
$client
$heartbeatRequest read-only
private
Closure|null
$heartbeatRequest
= null
$localHeartbeat read-only
private
Closure|null
$localHeartbeat
= null
Methods
__construct()
public
__construct(Client $client, string $taskId, string $activityAttemptId, string $leaseOwner, string $activityType, int $attemptNumber[, Closure|null $localHeartbeat = null ][, callable(array<string|int, mixed>): array<string, mixed>|null $heartbeatRequest = null ]) : mixed
Parameters
- $client : Client
- $taskId : string
- $activityAttemptId : string
- $leaseOwner : string
- $activityType : string
- $attemptNumber : int
- $localHeartbeat : Closure|null = null
- $heartbeatRequest : callable(array<string|int, mixed>): array<string, mixed>|null = null
heartbeat()
public
heartbeat([array<string|int, mixed> $details = [] ]) : void
Parameters
- $details : array<string|int, mixed> = []