ActivityInvocationCacheInterface
in
Table of Contents
Methods
- canHandle() : bool
- clear() : void
- execute() : PromiseInterface
- saveCompletion() : void
- saveCompletionWhen() : void
- saveConsecutiveCompletions() : void
- saveFailure() : void
Methods
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(non-empty-string $activityMethodName, mixed $value) : void
Parameters
- $activityMethodName : non-empty-string
- $value : mixed
-
Activity result: anything the DataConverter can encode, or an EncodedValues.
saveCompletionWhen()
public
saveCompletionWhen(non-empty-string $activityMethodName, array<int, mixed> $args, mixed $value) : void
Parameters
- $activityMethodName : non-empty-string
- $args : array<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(non-empty-string $activityMethodName, array<int, mixed> $values) : void
Parameters
- $activityMethodName : non-empty-string
- $values : array<int, mixed>
-
Per-call results, each anything the DataConverter can encode.
saveFailure()
public
saveFailure(non-empty-string $activityMethodName, Throwable $error) : void
Parameters
- $activityMethodName : non-empty-string
- $error : Throwable