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

Public Member Functions

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

Data Fields

const RPC_CONNECTION_TIMEOUT = 30
 

Detailed Description

Class message exchange.

@api

Since
100.0.0

Definition at line 23 of file Exchange.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( Config  $amqpConfig,
PublisherConfig  $publisherConfig,
ResponseQueueNameBuilder  $responseQueueNameBuilder,
CommunicationConfigInterface  $communicationConfig,
  $rpcConnectionTimeout = self::RPC_CONNECTION_TIMEOUT 
)

Initialize dependencies.

Parameters
Config$amqpConfig
PublisherConfig$publisherConfig
ResponseQueueNameBuilder$responseQueueNameBuilder
CommunicationConfigInterface$communicationConfig
int$rpcConnectionTimeout
Since
100.0.0

Definition at line 62 of file Exchange.php.

68  {
69  $this->amqpConfig = $amqpConfig;
70  $this->communicationConfig = $communicationConfig;
71  $this->rpcConnectionTimeout = $rpcConnectionTimeout;
72  $this->publisherConfig = $publisherConfig;
73  $this->responseQueueNameBuilder = $responseQueueNameBuilder;
74  }

Field Documentation

◆ RPC_CONNECTION_TIMEOUT

const RPC_CONNECTION_TIMEOUT = 30

Definition at line 25 of file Exchange.php.


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