RoadRunnerChildWorkflowInvocationCache
in package
implements
ChildWorkflowInvocationCacheInterface
FinalYes
Table of Contents
Interfaces
Constants
- CACHE_NAME : mixed = 'test'
- INVOKED_PREFIX : mixed = 'childWorkflowInvoked.'
- KEY_PREFIX : mixed = 'childWorkflow.'
- SIDE_EFFECT_CURSOR : mixed = 'sideEffect.cursor'
- SIDE_EFFECT_LIST : mixed = 'sideEffect.list'
- VERSION_PREFIX : mixed = 'workflowVersion.'
Properties
- $cache : StorageInterface
- $dataConverter : DataConverterInterface
Methods
- __construct() : mixed
- clear() : void
- create() : self
- get() : InvocationResult|InvocationFailure|InvocationMatched
- getVersion() : int
- has() : bool
- hasSideEffect() : bool
- hasVersion() : bool
- nextSideEffect() : mixed
- recordInvoked() : void
- saveCompletion() : void
- saveCompletionWhen() : void
- saveFailure() : void
- saveSideEffect() : void
- saveVersion() : void
- wasInvoked() : bool
- sideEffectCursor() : int
Constants
CACHE_NAME
private
mixed
CACHE_NAME
= 'test'
INVOKED_PREFIX
private
mixed
INVOKED_PREFIX
= 'childWorkflowInvoked.'
KEY_PREFIX
private
mixed
KEY_PREFIX
= 'childWorkflow.'
SIDE_EFFECT_CURSOR
private
mixed
SIDE_EFFECT_CURSOR
= 'sideEffect.cursor'
SIDE_EFFECT_LIST
private
mixed
SIDE_EFFECT_LIST
= 'sideEffect.list'
VERSION_PREFIX
private
mixed
VERSION_PREFIX
= 'workflowVersion.'
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
clear()
public
clear() : void
create()
public
static create([DataConverterInterface|null $dataConverter = null ]) : self
Parameters
- $dataConverter : DataConverterInterface|null = null
Return values
selfget()
public
get(string $workflowType) : InvocationResult|InvocationFailure|InvocationMatched
Parameters
- $workflowType : string
Return values
InvocationResult|InvocationFailure|InvocationMatchedgetVersion()
public
getVersion(string $changeId) : int
Parameters
- $changeId : string
Return values
inthas()
public
has(string $workflowType) : bool
Parameters
- $workflowType : string
Return values
boolhasSideEffect()
public
hasSideEffect() : bool
Return values
boolhasVersion()
public
hasVersion(string $changeId) : bool
Parameters
- $changeId : string
Return values
boolnextSideEffect()
public
nextSideEffect() : mixed
recordInvoked()
public
recordInvoked(string $workflowType) : void
Parameters
- $workflowType : string
saveCompletion()
public
saveCompletion(string $workflowType, mixed $value) : void
Parameters
- $workflowType : string
- $value : mixed
-
Child workflow result: anything the DataConverter can encode, or an EncodedValues.
saveCompletionWhen()
public
saveCompletionWhen(string $workflowType, array<string|int, mixed> $args, mixed $value) : void
Parameters
- $workflowType : string
- $args : array<string|int, mixed>
-
Start arguments to byte-match against, encoded via the DataConverter.
- $value : mixed
-
Result returned on a match: anything the DataConverter can encode, or an EncodedValues.
saveFailure()
public
saveFailure(string $workflowType, Throwable $error) : void
Parameters
- $workflowType : string
- $error : Throwable
saveSideEffect()
public
saveSideEffect(mixed $value) : void
Parameters
- $value : mixed
-
Side-effect result: anything the DataConverter can encode.
saveVersion()
public
saveVersion(string $changeId, int $version) : void
Parameters
- $changeId : string
- $version : int
wasInvoked()
public
wasInvoked(string $workflowType) : bool
Parameters
- $workflowType : string
Return values
boolsideEffectCursor()
private
sideEffectCursor() : int