PHP Class Graze\Supervisor\Handler\RetryHandler

Inheritance: extends DecoratedHandler
Show file Open project: graze/supervisor

Protected Properties

Property Type Description
$max

Public Methods

Method Description
__construct ( integer $max, Graze\Supervisor\Handler\HandlerInterface $handler = null )
handleFail ( integer $retries, Graze\Supervisor\SupervisorInterface $supervisor, Exception $exception = null )
handlePass ( integer $retries, Graze\Supervisor\SupervisorInterface $supervisor )

Method Details

__construct() public method

public __construct ( integer $max, Graze\Supervisor\Handler\HandlerInterface $handler = null )
$max integer
$handler Graze\Supervisor\Handler\HandlerInterface

handleFail() public method

public handleFail ( integer $retries, Graze\Supervisor\SupervisorInterface $supervisor, Exception $exception = null )
$retries integer
$supervisor Graze\Supervisor\SupervisorInterface
$exception Exception

handlePass() public method

public handlePass ( integer $retries, Graze\Supervisor\SupervisorInterface $supervisor )
$retries integer
$supervisor Graze\Supervisor\SupervisorInterface

Property Details

$max protected property

protected $max