Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
Exchange Class Reference
Inheritance diagram for Exchange:
Exchange ExchangeInterface

Public Member Functions

 __construct (Config $amqpConfig, QueueConfig $queueConfig, CommunicationConfigInterface $communicationConfig, $rpcConnectionTimeout=self::RPC_CONNECTION_TIMEOUT)
 
- Public Member Functions inherited from Exchange
 __construct (Config $amqpConfig, PublisherConfig $publisherConfig, ResponseQueueNameBuilder $responseQueueNameBuilder, CommunicationConfigInterface $communicationConfig, $rpcConnectionTimeout=self::RPC_CONNECTION_TIMEOUT)
 
- Public Member Functions inherited from ExchangeInterface
 enqueue ($topic, EnvelopeInterface $envelope)
 

Additional Inherited Members

- Data Fields inherited from Exchange
const RPC_CONNECTION_TIMEOUT = 30
 

Detailed Description

{}

Deprecated:
100.2.0

Definition at line 18 of file Exchange.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( Config  $amqpConfig,
QueueConfig  $queueConfig,
CommunicationConfigInterface  $communicationConfig,
  $rpcConnectionTimeout = self::RPC_CONNECTION_TIMEOUT 
)

Initialize dependencies.

Parameters
Config$amqpConfig
QueueConfig$queueConfig
CommunicationConfigInterface$communicationConfig
int$rpcConnectionTimeout@SuppressWarnings(PHPMD.UnusedFormalParameter)

Definition at line 30 of file Exchange.php.

35  {
36  parent::__construct(
37  $amqpConfig,
38  $this->getPublisherConfig(),
39  $this->getResponseQueueNameBuilder(),
40  $communicationConfig,
41  $rpcConnectionTimeout
42  );
43  }

The documentation for this class was generated from the following file: