RetryOnFailureInterceptor
in package
implements
MethodInterceptor
FinalYes
Table of Contents
Interfaces
- MethodInterceptor
Methods
- invoke() : mixed
- bindings() : array<string, array<int, MethodInterceptor>>
- Get the interceptor bindings of a weaved object.
- innerChain() : callable(): mixed
- Build a callable that re-executes only the interceptors inside this one.
- retry() : mixed
- Retry an operation a given number of times.
Methods
invoke()
public
invoke(MethodInvocation $invocation) : mixed
Parameters
- $invocation : MethodInvocation
Attributes
- #[Override]
bindings()
Get the interceptor bindings of a weaved object.
private
bindings(WeavedInterface $object) : array<string, array<int, MethodInterceptor>>
Parameters
- $object : WeavedInterface
-
The weaved object
Return values
array<string, array<int, MethodInterceptor>> —The bindings
innerChain()
Build a callable that re-executes only the interceptors inside this one.
private
innerChain(MethodInvocation<string|int, object> $invocation) : callable(): mixed
Parameters
- $invocation : MethodInvocation<string|int, object>
-
The method invocation
Return values
callable(): mixed —The callable
retry()
Retry an operation a given number of times.
private
retry(MethodInvocation<string|int, object> $invocation, RetryOnFailure $attribute) : mixed
Parameters
- $invocation : MethodInvocation<string|int, object>
-
The method invocation
- $attribute : RetryOnFailure
-
The attribute
Return values
mixed —The result of the method invocation