InMemoryActivityInvocationCache
in package
implements
ActivityInvocationCacheInterface
FinalYes
Table of Contents
Interfaces
Properties
- $cache : array<non-empty-string, ActivityInvocationFailure|ActivityInvocationResult>
- $dataConverter : DataConverterInterface
Methods
- __construct() : mixed
- canHandle() : bool
- clear() : void
- execute() : PromiseInterface
- saveCompletion() : void
- saveFailure() : void
Properties
$cache
private
array<non-empty-string, ActivityInvocationFailure|ActivityInvocationResult>
$cache
= []
$dataConverter
private
DataConverterInterface
$dataConverter
Methods
__construct()
public
__construct([DataConverterInterface|null $dataConverter = null ]) : mixed
Parameters
- $dataConverter : DataConverterInterface|null = null
canHandle()
public
canHandle(ServerRequestInterface $request) : bool
Parameters
- $request : ServerRequestInterface
Return values
boolclear()
public
clear() : void
execute()
public
execute(ServerRequestInterface $request) : PromiseInterface
Parameters
- $request : ServerRequestInterface
Return values
PromiseInterfacesaveCompletion()
public
saveCompletion(string $activityMethodName, mixed $value) : void
Parameters
- $activityMethodName : string
- $value : mixed
saveFailure()
public
saveFailure(string $activityMethodName, Throwable $error) : void
Parameters
- $activityMethodName : string
- $error : Throwable