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 $dataConverter = null ]) : mixed
Parameters
- $host : string
- $cacheName : string
- $dataConverter : DataConverterInterface = null
canHandle()
public
canHandle(ServerRequestInterface $request) : bool
Parameters
- $request : ServerRequestInterface
Return values
boolclear()
public
clear() : void
create()
public
static create([DataConverterInterface $dataConverter = null ]) : self
Parameters
- $dataConverter : DataConverterInterface = 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