Record - nats : ConnectionConfig

The parameters used to create a NATS streaming subscription.

Fields

  • connectionName string ballerina-nats
  • Name of the connection. This is optional.

  • maxReconnect int 60
  • Maximum number of reconnect attempts. Use 0 to turn off auto reconnect. Use -1 to turn on infinite reconnects. The reconnect state is entered when the connection is connected and when that connection is lost. During the initial connection attempt, the client will cycle over its server list one time regardless of the maxReconnects value that is set.

  • reconnectWaitInSeconds int 2
  • The time to wait between reconnect attempts to reconnect to the same server. This is measured in seconds.

  • connectionTimeoutInSeconds int 2
  • The timeout for connection attempts measured in seconds.

  • pingIntervalInMinutes int 2
  • The interval between the attempts of pinging the server. This is measured in minutes.

  • maxPingsOut int 2
  • The maximum number of pings the client can have in flight. The default value will be a small number.

  • username string
  • The username for basic authentication.

  • password string
  • The password for basic authentication.

  • token string
  • The token for token-based authentication.

  • inboxPrefix string _INBOX.
  • The connection's inbox prefix. All inboxes will start with this string.

  • noEcho boolean false
  • Turns off echo. This prevents the server from echoing messages back to the connection if it has subscriptions on the subject being published to.

  • enableErrorListener boolean false
  • Enables Connection Error listener.

  • secureSocket SecureSocket? ()
  • Configurations related to SSL/TLS.