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.

Methods

createAndGetConsumer

(QueueConfiguration config, boolean autoAck, string? filter)

returns Consumer | error

The 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

  • autoAck boolean - true
  • whether to acknowledge the received message automatically

  • filter string? - ()
  • only messages, which match this filter will be consumed

  • Return Type

    (Consumer | error)
  • the Consumer object for the listener to make blocking calls

LifeCycle Methods

__start

()

returns error?

__stop

()

returns error?

__attach

(service s, string? name)

returns error?

Parameters