Documentation

RetryOnFailureInterceptor
in package
implements MethodInterceptor

FinalYes

Table of Contents

Interfaces

MethodInterceptor

Properties

$attempts  : int<0, max>
The number of attempts made so far.
$backoff  : array<int, int<0, max>>
The backoff strategy.
$initialized  : bool
Whether the interceptor has been initialized.
$times  : null|int<0, max>
The number of times to retry.

Methods

invoke()  : mixed
retry()  : mixed
Retry an operation a given number of times.

Properties

Methods

retry()

Retry an operation a given number of times.

private retry(MethodInvocation $invocation, RetryOnFailure $attribute) : mixed
Parameters
$invocation : MethodInvocation

The method invocation

$attribute : RetryOnFailure

The attribute

Return values
mixed

The result of the method invocation


        
On this page

Search results