PHP Class Swarrot\Processor\SignalHandler\SignalHandlerProcessor

Inheritance: implements Swarrot\Processor\ConfigurableInterface, implements Swarrot\Processor\SleepyInterface
Datei anzeigen Open project: swarrot/swarrot Class Usage Examples

Protected Properties

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

Public Methods

Method 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 )

Protected Methods

Method Description
shouldStop ( ) : boolean shouldStop.

Method Details

__construct() public method

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

initialize() public method

public initialize ( array $options )
$options array

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

shouldStop() protected method

shouldStop.
protected shouldStop ( ) : boolean
return boolean

sleep() public method

public sleep ( array $options )
$options array

Property Details

$logger protected_oe property

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

$processor protected_oe property

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

$shouldExit protected_oe static_oe property

protected static bool $shouldExit
return boolean