Create a new adapter manager instance
Name of the queue through which requests will be sent
The amqplib-oop connection options or an instance of a connection
If a connection is passed in, it will not be closed when the adapter is closed
The adapter function to be used with the Axios Request Config adapter property
Static makeGenerate an adapter function to be used with the Axios Request Config adapter property
Name of the queue through which requests will be sent
The amqplib-oop connection options or an instance of a connection
The adapter function to be used with the Axios Request Config adapter property
If a connection is passed in, it will not be closed when the adapter is closed
A class used to generate adapters for use with axios based on amqplib-oop
Example
or
Retreiving the Adapter
In order to ensure that the script doesn't hang unexpectedly, if the adapter is initialized with ConnectionConstructorOptions, the connection will be closed once the request is complete and the adapter cannot be re-used. In order to create a reusable adapter instance, you should initialize the adapter with an already initialized Connection instance.
Note: If you initialize the adapter with an already initialized Connection instance, you will need to manually close the connection when you are done with it.
Using a single-use adapter with a single-use request
Creating a multi-use adapter
Using a multi-use adapter with a single-use request
Using a multi-use adapter with a multi-use axios instance