Listener - jms : DurableTopicListener

The JMS DurableTopicListener endpoint.

Constructor

__init

(Session | ReceiverEndpointConfiguration c, string topicPattern, string identifier, string messageSelector)

  • topicPattern string
  • Name or the pattern of the topic subscription.

  • identifier string
  • The unique identifier for the subscription.

  • messageSelector string
  • The JMS selector statement.

Methods

LifeCycle Methods

Fields

  • consumerActions DurableTopicSubscriberCaller BLangTypeInit: new null ([])
  • The object, which handles the network operations related to the subscriber.

  • session Session
  • Session of the topic listener.

Methods

getCallerActions

()

returns DurableTopicSubscriberCaller

Returns the subscrber caller actions.

LifeCycle Methods

__attach

(service s, string? name)

returns error?

Binds the durable topic subscriber endpoint to a service.

Parameters

  • s service
  • Type descriptor of the service.

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

  • Return Type

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

__start

()

returns error?

Starts the endpoint. The function is ignored by the subscriber endpoint.

  • Return Type

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

__stop

()

returns error?

Stops consuming messages from the DurableTopicListener.

  • Return Type

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