Packages

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

Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MqttSettings
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. 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

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val clientId: String
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. val commandBroadcastSourceBufferSize: Int
  8. val commandMergeSinkPerProducerBufferSize: Int
  9. val commandQueueBufferSize: Int
  10. val connectFlags: ConnectFlags
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. val eventBroadcastSourceBufferSize: Int
  13. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. val host: String
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. val maxRestarts: Int
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. val password: String
  22. val port: Int
  23. def productElementNames: Iterator[String]
    Definition Classes
    Product
  24. val publishMergeSinkPerProducerBufferSize: Int
  25. val restartLogLevel: LogLevel
  26. val restartMaxBackoff: FiniteDuration
  27. val restartMinBackoff: FiniteDuration
  28. val restartRandomFactor: Double
  29. val sessionId: ByteString
  30. val subscriptions: Seq[MqttTopic]
  31. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  32. val username: String
  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  36. val withEventBroadcastSourceBackpressure: Boolean

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped