Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
framework-message-queue
Consumer
Config
ConsumerConfigItem.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\MessageQueue\Consumer\Config
;
7
8
use
Magento\Framework\MessageQueue\Consumer\Config\ConsumerConfigItem\Handler\Iterator
as HandlerIterator;
9
use
Magento\Framework\MessageQueue\Consumer\Config\ConsumerConfigItem\Handler\IteratorFactory
as HandlerIteratorFactory;
10
14
class
ConsumerConfigItem
implements
ConsumerConfigItemInterface
15
{
19
private
$name;
20
24
private
$connection;
25
29
private
$queue;
30
34
private
$consumerInstance;
35
39
private
$handlers;
40
44
private
$maxMessages;
45
51
public
function
__construct
(HandlerIteratorFactory $handlerIteratorFactory)
52
{
53
$this->handlers = $handlerIteratorFactory->create();
54
}
55
59
public
function
getName
()
60
{
61
return
$this->name;
62
}
63
67
public
function
getConnection
()
68
{
69
return
$this->connection;
70
}
71
75
public
function
getQueue
()
76
{
77
return
$this->queue;
78
}
79
83
public
function
getConsumerInstance
()
84
{
85
return
$this->consumerInstance;
86
}
87
91
public
function
getHandlers
()
92
{
93
return
$this->handlers;
94
}
95
99
public
function
getMaxMessages
()
100
{
101
return
$this->maxMessages;
102
}
103
107
public
function
setData
(array
$data
)
108
{
109
$this->
name
=
$data
[
'name'
];
110
$this->connection =
$data
[
'connection'
];
111
$this->queue =
$data
[
'queue'
];
112
$this->consumerInstance =
$data
[
'consumerInstance'
];
113
$this->maxMessages =
$data
[
'maxMessages'
];
114
$this->handlers->setData(
$data
[
'handlers'
]);
115
}
116
}
Magento\Framework\MessageQueue\Consumer\Config\ConsumerConfigItem\__construct
__construct(HandlerIteratorFactory $handlerIteratorFactory)
Definition:
ConsumerConfigItem.php:51
Magento\Framework\MessageQueue\Consumer\Config
Definition:
CompositeReader.php:6
Magento\Framework\MessageQueue\Consumer\Config\ConsumerConfigItemInterface
Definition:
ConsumerConfigItemInterface.php:13
name
Magento\Framework\MessageQueue\Consumer\Config\ConsumerConfigItem\getName
getName()
Definition:
ConsumerConfigItem.php:59
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Framework\MessageQueue\Consumer\Config\ConsumerConfigItem\getConnection
getConnection()
Definition:
ConsumerConfigItem.php:67
Magento\Framework\MessageQueue\Consumer\Config\ConsumerConfigItem\getMaxMessages
getMaxMessages()
Definition:
ConsumerConfigItem.php:99
Magento\Framework\MessageQueue\Consumer\Config\ConsumerConfigItem\getQueue
getQueue()
Definition:
ConsumerConfigItem.php:75
Magento\Framework\MessageQueue\Consumer\Config\ConsumerConfigItem\getHandlers
getHandlers()
Definition:
ConsumerConfigItem.php:91
Magento\Framework\MessageQueue\Consumer\Config\ConsumerConfigItem\setData
setData(array $data)
Definition:
ConsumerConfigItem.php:107
Magento\Framework\MessageQueue\Consumer\Config\ConsumerConfigItem\Handler\IteratorFactory
Definition:
IteratorFactory.php:11
Magento\Framework\MessageQueue\Consumer\Config\ConsumerConfigItem\Handler\Iterator
Definition:
Iterator.php:14
Magento\Framework\MessageQueue\Consumer\Config\ConsumerConfigItem\getConsumerInstance
getConsumerInstance()
Definition:
ConsumerConfigItem.php:83
Magento\Framework\MessageQueue\Consumer\Config\ConsumerConfigItem
Definition:
ConsumerConfigItem.php:14