PHP Class Uecode\Bundle\QPushBundle\Provider\FileProvider

Inheritance: extends AbstractProvider
Datei anzeigen Open project: uecode/qpush-bundle Class Usage Examples

Protected Properties

Property Type Description
$filePointerList
$queuePath

Public Methods

Method Description
__construct ( $name, array $options, $client, Doctrine\Common\Cache\Cache $cache, Logger $logger )
cleanUp ( )
create ( )
delete ( $id )
destroy ( )
getProvider ( )
onMessageReceived ( Uecode\Bundle\QPushBundle\Event\MessageEvent $event ) : boolean | void Removes the message from queue after all other listeners have fired
publish ( array $message, array $options = [] )
receive ( array $options = [] ) : Uecode\Bundle\QPushBundle\Message\Message[]

Method Details

__construct() public method

public __construct ( $name, array $options, $client, Doctrine\Common\Cache\Cache $cache, Logger $logger )
$options array
$cache Doctrine\Common\Cache\Cache
$logger Monolog\Logger

cleanUp() public method

public cleanUp ( )

create() public method

public create ( )

delete() public method

public delete ( $id )

destroy() public method

public destroy ( )

getProvider() public method

public getProvider ( )

onMessageReceived() public method

If an earlier listener has erred or stopped propagation, this method will not fire and the Queued Message should become visible in queue again. Stops Event Propagation after removing the Message
public onMessageReceived ( Uecode\Bundle\QPushBundle\Event\MessageEvent $event ) : boolean | void
$event Uecode\Bundle\QPushBundle\Event\MessageEvent The SQS Message Event
return boolean | void

publish() public method

public publish ( array $message, array $options = [] )
$message array
$options array

receive() public method

public receive ( array $options = [] ) : Uecode\Bundle\QPushBundle\Message\Message[]
$options array
return Uecode\Bundle\QPushBundle\Message\Message[]

Property Details

$filePointerList protected_oe property

protected $filePointerList

$queuePath protected_oe property

protected $queuePath