RoadRunnerActivityInvocationCache
in package
implements
ActivityInvocationCacheInterface
FinalYes
Table of Contents
Interfaces
Constants
- CACHE_NAME = 'test'
Properties
- $cache : StorageInterface
- $dataConverter : DataConverterInterface
Methods
- __construct() : mixed
- canHandle() : bool
- clear() : void
- create() : self
- execute() : PromiseInterface
- saveCompletion() : void
- saveFailure() : void
Constants
CACHE_NAME
private
mixed
CACHE_NAME
= 'test'
Properties
$cache
private
StorageInterface
$cache
$dataConverter
private
DataConverterInterface
$dataConverter
Methods
__construct()
public
__construct(string $host, string $cacheName[, DataConverterInterface|null $dataConverter = null ]) : mixed
Parameters
- $host : string
- $cacheName : string
- $dataConverter : DataConverterInterface|null = null
canHandle()
public
canHandle(ServerRequestInterface $request) : bool
Parameters
- $request : ServerRequestInterface
Return values
boolclear()
public
clear() : void
create()
public
static create([DataConverterInterface|null $dataConverter = null ]) : self
Parameters
- $dataConverter : DataConverterInterface|null = null
Return values
selfexecute()
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