PHP Class Tolerance\Bridge\RabbitMqBundle\Tracer\TracedProducer

Inheritance: implements OldSound\RabbitMqBundle\RabbitMq\ProducerInterface
显示文件 Open project: sroze/tolerance

Public Methods

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

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 method

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 method

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