Listener - nats : StreamingListener

Represents the NATS Streaming Server connection, to which a subscription service should be bound to in order to receive messages of the corresponding subscription.

Constructor

__init

(Connection connection, string clientId, string clusterId, StreamingConfig? streamingConfig)

  • connection Connection
  • An established NATS connection.

  • clientId string ()
  • A unique identifier representing the client. The clientId should be unique across subscriptions. Therefore, multilpe subscription services cannot be bound to a single listener.

  • clusterId string test-cluster
  • The ID of the cluster configured in the NATS server. Default value is test-cluster.

  • streamingConfig StreamingConfig? ()
  • The configuration related to the NATS streaming connectivity.

Methods

LifeCycle Methods

Methods

__detach

(service s)

returns error?

Parameters

__gracefulStop

()

returns error?

__immediateStop

()

returns error?

LifeCycle Methods

__attach

(service s, string name)

returns error?

Parameters

  • name string - ()

__start

()

returns error?