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

Documentation

InMemoryActivityInvocationCache
in package
implements ActivityInvocationCacheInterface

FinalYes

Table of Contents

Interfaces

ActivityInvocationCacheInterface

Properties

$cache  : array<non-empty-string, InvocationFailure|InvocationResult|InvocationResultQueue|InvocationMatched>
$dataConverter  : DataConverterInterface

Methods

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

Properties

Methods

saveCompletion()

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

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

saveCompletionWhen()

public saveCompletionWhen(string $activityMethodName, array<string|int, mixed> $args, mixed $value) : void
Parameters
$activityMethodName : string
$args : array<string|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(string $activityMethodName, array<string|int, mixed> $values) : void
Parameters
$activityMethodName : string
$values : array<string|int, mixed>

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

saveFailure()

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

Search results