Listener -
artemis
: Listener
Represents ActiveMQ Artemis Listener. This is an abstraction for that includes the connection and session. Consumers are represented by the service attaching to this listener.
Constructor
__init
(Session | EndpointConfiguration sessionOrEndpointConfig)
- sessionOrEndpointConfig Session | EndpointConfiguration
Methods
LifeCycle Methods
Methods
createAndGetConsumer
(QueueConfiguration config, boolean autoAck, string? filter)
returns Consumer | errorThe Artemis consumer is represented by the Service
object.
However, if there is a need to make blocking synchronous calls, within a transaction block,
this method can be used to create and get a Consumer
object.
Parameters
- config QueueConfiguration
-
the configuration for the queue
- autoAck boolean - true
-
whether to acknowledge the received message automatically
- filter string? - ()
-
only messages, which match this filter will be consumed