final case class MqttSettings(host: String, port: Int, username: String = "", password: String = "", subscriptions: Seq[MqttTopic] = Seq.empty[MqttTopic], clientId: String = generateUuid.toString, sessionId: ByteString = ByteString(generateUuid.toString), connectFlags: ConnectFlags = ConnectFlags.CleanSession, restartMinBackoff: FiniteDuration = 1.seconds, restartMaxBackoff: FiniteDuration = 30.seconds, restartRandomFactor: Double = 0.2, maxRestarts: Int = -1, restartLogLevel: LogLevel = Logging.WarningLevel, commandMergeSinkPerProducerBufferSize: Int = 16, commandBroadcastSourceBufferSize: Int = 128, eventBroadcastSourceBufferSize: Int = 128, withEventBroadcastSourceBackpressure: Boolean = false, publishMergeSinkPerProducerBufferSize: Int = 32, commandQueueBufferSize: Int = 128) extends Product with Serializable
MQTT client settings
- host
MQTT host
- port
MQTT port
- username
MQTT username
- password
MQTT password
- subscriptions
MQTT topics to subscribe to
- clientId
MQTT client ID
- sessionId
MQTT session ID
- connectFlags
MQTT connect flags
- restartMinBackoff
MQTT restart minimum backoff
- restartMaxBackoff
MQTT restart maximum backoff
- restartRandomFactor
MQTT restart random factor, random delay is added based on this factor
- maxRestarts
MQTT maximum restarts, set to -1 for infinite restarts
- restartLogLevel
MQTT restart log level
- commandMergeSinkPerProducerBufferSize
buffer space used per producer for command sink merge hub
- commandBroadcastSourceBufferSize
MQTT commands broadcast buffer size, must be a power of 2
- eventBroadcastSourceBufferSize
MQTT events broadcast buffer size, must be a power of 2
- withEventBroadcastSourceBackpressure
if true, the event broadcast will store events in a buffer until there is demand and eventually apply backpressure on the MQTT session flow; if false, the events will be always consumed even if there is no external demand
- publishMergeSinkPerProducerBufferSize
buffer space used per producer for publish merge sink
- commandQueueBufferSize
MQTT command queue buffer size
- Alphabetic
- By Inheritance
- MqttSettings
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new MqttSettings(host: String, port: Int, username: String = "", password: String = "", subscriptions: Seq[MqttTopic] = Seq.empty[MqttTopic], clientId: String = generateUuid.toString, sessionId: ByteString = ByteString(generateUuid.toString), connectFlags: ConnectFlags = ConnectFlags.CleanSession, restartMinBackoff: FiniteDuration = 1.seconds, restartMaxBackoff: FiniteDuration = 30.seconds, restartRandomFactor: Double = 0.2, maxRestarts: Int = -1, restartLogLevel: LogLevel = Logging.WarningLevel, commandMergeSinkPerProducerBufferSize: Int = 16, commandBroadcastSourceBufferSize: Int = 128, eventBroadcastSourceBufferSize: Int = 128, withEventBroadcastSourceBackpressure: Boolean = false, publishMergeSinkPerProducerBufferSize: Int = 32, commandQueueBufferSize: Int = 128)
- host
MQTT host
- port
MQTT port
- username
MQTT username
- password
MQTT password
- subscriptions
MQTT topics to subscribe to
- clientId
MQTT client ID
- sessionId
MQTT session ID
- connectFlags
MQTT connect flags
- restartMinBackoff
MQTT restart minimum backoff
- restartMaxBackoff
MQTT restart maximum backoff
- restartRandomFactor
MQTT restart random factor, random delay is added based on this factor
- maxRestarts
MQTT maximum restarts, set to -1 for infinite restarts
- restartLogLevel
MQTT restart log level
- commandMergeSinkPerProducerBufferSize
buffer space used per producer for command sink merge hub
- commandBroadcastSourceBufferSize
MQTT commands broadcast buffer size, must be a power of 2
- eventBroadcastSourceBufferSize
MQTT events broadcast buffer size, must be a power of 2
- withEventBroadcastSourceBackpressure
if true, the event broadcast will store events in a buffer until there is demand and eventually apply backpressure on the MQTT session flow; if false, the events will be always consumed even if there is no external demand
- publishMergeSinkPerProducerBufferSize
buffer space used per producer for publish merge sink
- commandQueueBufferSize
MQTT command queue buffer size
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val clientId: String
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val commandBroadcastSourceBufferSize: Int
- val commandMergeSinkPerProducerBufferSize: Int
- val commandQueueBufferSize: Int
- val connectFlags: ConnectFlags
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val eventBroadcastSourceBufferSize: Int
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val host: String
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val maxRestarts: Int
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val password: String
- val port: Int
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val publishMergeSinkPerProducerBufferSize: Int
- val restartLogLevel: LogLevel
- val restartMaxBackoff: FiniteDuration
- val restartMinBackoff: FiniteDuration
- val restartRandomFactor: Double
- val sessionId: ByteString
- val subscriptions: Seq[MqttTopic]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val username: String
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- val withEventBroadcastSourceBackpressure: Boolean