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
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
Methods
__construct()
public
__construct(Client $client, string $taskId, string $activityAttemptId, string $leaseOwner, string $activityType, int $attemptNumber) : mixed
Parameters
- $client : Client
- $taskId : string
- $activityAttemptId : string
- $leaseOwner : string
- $activityType : string
- $attemptNumber : int
heartbeat()
public
heartbeat([array<string, mixed> $details = [] ]) : void
Parameters
- $details : array<string, mixed> = []