PHP Class Swarrot\Processor\InstantRetry\InstantRetryProcessor

Inheritance: implements Swarrot\Processor\ConfigurableInterface
Show file Open project: swarrot/swarrot Class Usage Examples

Protected Properties

Property Type Description
$logger Psr\Log\LoggerInterface
$processor Swarrot\Processor\ProcessorInterface

Public Methods

Method Description
__construct ( Swarrot\Processor\ProcessorInterface $processor, Psr\Log\LoggerInterface $logger = null )
process ( Swarrot\Broker\Message $message, array $options )
setDefaultOptions ( Symfony\Component\OptionsResolver\OptionsResolver $resolver )

Private Methods

Method Description
handleException ( Exception | Throwable $exception, Swarrot\Broker\Message $message, array $options )

Method Details

__construct() public method

public __construct ( Swarrot\Processor\ProcessorInterface $processor, Psr\Log\LoggerInterface $logger = null )
$processor Swarrot\Processor\ProcessorInterface
$logger Psr\Log\LoggerInterface

process() public method

public process ( Swarrot\Broker\Message $message, array $options )
$message Swarrot\Broker\Message
$options array

setDefaultOptions() public method

public setDefaultOptions ( Symfony\Component\OptionsResolver\OptionsResolver $resolver )
$resolver Symfony\Component\OptionsResolver\OptionsResolver

Property Details

$logger protected property

protected LoggerInterface,Psr\Log $logger
return Psr\Log\LoggerInterface

$processor protected property

protected ProcessorInterface,Swarrot\Processor $processor
return Swarrot\Processor\ProcessorInterface