PHP Class Tolerance\Bridge\RabbitMqBundle\Tracer\TracedProducer

Inheritance: implements OldSound\RabbitMqBundle\RabbitMq\ProducerInterface
Afficher le fichier Open project: sroze/tolerance

Méthodes publiques

Méthode Description
__construct ( OldSound\RabbitMqBundle\RabbitMq\ProducerInterface $decoratedProducer, AmqpSpanFactory $amqpSpanFactory, Tolerance\Tracer\Tracer $tracer )
close ( ) This method is added for compatibility reasons with a strange way of closing RabbitMq connections.
publish ( $msgBody, $routingKey = '', $additionalProperties = [] )

Method Details

__construct() public méthode

public __construct ( OldSound\RabbitMqBundle\RabbitMq\ProducerInterface $decoratedProducer, AmqpSpanFactory $amqpSpanFactory, Tolerance\Tracer\Tracer $tracer )
$decoratedProducer OldSound\RabbitMqBundle\RabbitMq\ProducerInterface
$amqpSpanFactory Tolerance\Tracer\SpanFactory\Amqp\AmqpSpanFactory
$tracer Tolerance\Tracer\Tracer

close() public méthode

This method is added for compatibility reasons with a strange way of closing RabbitMq connections.
See also: https://github.com/php-amqplib/RabbitMqBundle/pull/378
public close ( )

publish() public méthode

public publish ( $msgBody, $routingKey = '', $additionalProperties = [] )