Listener - jms : QueueListener

The Queue Receiver endpoint.

Constructor

__init

(Session | ReceiverEndpointConfiguration c, string? queueName, string messageSelector, string identifier)

  • queueName string? ()
  • Name of the queue.

  • messageSelector string
  • The message selector for the queue.

  • identifier string
  • The unique identifier for the receiver.

Methods

LifeCycle Methods

Fields

  • consumerActions QueueReceiverCaller BLangTypeInit: new null ([])
  • Handles all the caller actions related to the QueueListener.

  • session Session
  • Session of the queue receiver.

  • messageSelector string
  • The message selector for the queue receiver.

  • identifier string
  • Unique identifier for the reciever.

Methods

getCallerActions

()

returns QueueReceiverCaller

Retrieves the QueueReceiver.

LifeCycle Methods

__attach

(service s, string? name)

returns error?

Binds the queue receiver endpoint to a service.

Parameters

  • name string? - ()
  • Name of the service.

  • Return Type

    (error?)
  • Returns nil or an error upon failure to register the listener.

__start

()

returns error?

Starts the endpoint.

  • Return Type

    (error?)
  • Returns nil or an error upon failure to start.

__stop

()

returns error?

Stops consuming messages through the QueueListener.

  • Return Type

    (error?)
  • Returns nil or an error upon failure to close the queue receiver.