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

Documentation

ActivityInvocationCacheInterface

Table of Contents

Methods

canHandle()  : bool
clear()  : void
execute()  : PromiseInterface
saveCompletion()  : void
saveCompletionWhen()  : void
saveConsecutiveCompletions()  : void
saveFailure()  : void

Methods

saveCompletion()

public saveCompletion(non-empty-string $activityMethodName, mixed $value) : void
Parameters
$activityMethodName : non-empty-string
$value : mixed

Activity result: anything the DataConverter can encode, or an EncodedValues.

saveCompletionWhen()

public saveCompletionWhen(non-empty-string $activityMethodName, array<int, mixed> $args, mixed $value) : void
Parameters
$activityMethodName : non-empty-string
$args : array<int, mixed>

Call arguments to byte-match against, encoded via the DataConverter.

$value : mixed

Result returned on a match: anything the DataConverter can encode, or an EncodedValues.

saveConsecutiveCompletions()

public saveConsecutiveCompletions(non-empty-string $activityMethodName, array<int, mixed> $values) : void
Parameters
$activityMethodName : non-empty-string
$values : array<int, mixed>

Per-call results, each anything the DataConverter can encode.

saveFailure()

public saveFailure(non-empty-string $activityMethodName, Throwable $error) : void
Parameters
$activityMethodName : non-empty-string
$error : Throwable
On this page

Search results