PHP Class Swarrot\Processor\SignalHandler\SignalHandlerProcessor

Inheritance: implements Swarrot\Processor\ConfigurableInterface, implements Swarrot\Processor\SleepyInterface
Afficher le fichier Open project: swarrot/swarrot Class Usage Examples

Protected Properties

Свойство Type Description
$logger Psr\Log\LoggerInterface
$processor Swarrot\Processor\ProcessorInterface
$shouldExit boolean

Méthodes publiques

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

Méthodes protégées

Méthode Description
shouldStop ( ) : boolean shouldStop.

Method Details

__construct() public méthode

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

initialize() public méthode

public initialize ( array $options )
$options array

process() public méthode

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

setDefaultOptions() public méthode

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

shouldStop() protected méthode

shouldStop.
protected shouldStop ( ) : boolean
Résultat boolean

sleep() public méthode

public sleep ( array $options )
$options array

Property Details

$logger protected_oe property

protected LoggerInterface,Psr\Log $logger
Résultat Psr\Log\LoggerInterface

$processor protected_oe property

protected ProcessorInterface,Swarrot\Processor $processor
Résultat Swarrot\Processor\ProcessorInterface

$shouldExit protected_oe static_oe property

protected static bool $shouldExit
Résultat boolean