public class QueueProducer extends Object
Important: Try to avoid unnecessary instantiation of this class and better use a singleton pattern (eg. @Singleton). The reason
for this advice is, each new Instance of QueueProducer will affect in estabilisching a new channel to rabbitMQ but rabbitMQ
only support 65535 channels at all.
| Constructor and Description |
|---|
QueueProducer(ConnectionHolder connectionHolder,
ConsumerRegistry consumerRegistry) |
@Inject public QueueProducer(ConnectionHolder connectionHolder, ConsumerRegistry consumerRegistry)
public UUID submit(String jsonString, String queueName) throws IOException
IOExceptionCopyright © 2020 LeanIX GmbH. All rights reserved.