Packages

final case class MqttSettings(host: String, port: Int, username: String = "", password: String = "", topics: 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, commandBroadcastBufferSize: Int = 128, eventBroadcastBufferSize: Int = 128, withEventBroadcastBackpressure: Boolean = false, publishSinkPerProducerBufferSize: Int = 32) extends Product with Serializable

MQTT client settings

host

MQTT host

port

MQTT port

username

MQTT username

password

MQTT password

topics

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

commandBroadcastBufferSize

MQTT commands broadcast buffer size, must be a power of 2

eventBroadcastBufferSize

MQTT events broadcast buffer size, must be a power of 2

withEventBroadcastBackpressure

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

publishSinkPerProducerBufferSize

buffer space used per producer for publish sink

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 = "", topics: 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, commandBroadcastBufferSize: Int = 128, eventBroadcastBufferSize: Int = 128, withEventBroadcastBackpressure: Boolean = false, publishSinkPerProducerBufferSize: Int = 32)

    host

    MQTT host

    port

    MQTT port

    username

    MQTT username

    password

    MQTT password

    topics

    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

    commandBroadcastBufferSize

    MQTT commands broadcast buffer size, must be a power of 2

    eventBroadcastBufferSize

    MQTT events broadcast buffer size, must be a power of 2

    withEventBroadcastBackpressure

    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

    publishSinkPerProducerBufferSize

    buffer space used per producer for publish sink

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 commandBroadcastBufferSize: Int
  8. val connectFlags: ConnectFlags
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. val eventBroadcastBufferSize: Int
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. val host: String
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. val maxRestarts: Int
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. val password: String
  20. val port: Int
  21. def productElementNames: Iterator[String]
    Definition Classes
    Product
  22. val publishSinkPerProducerBufferSize: Int
  23. val restartLogLevel: LogLevel
  24. val restartMaxBackoff: FiniteDuration
  25. val restartMinBackoff: FiniteDuration
  26. val restartRandomFactor: Double
  27. val sessionId: ByteString
  28. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  29. val topics: Seq[MqttTopic]
  30. val username: String
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  34. val withEventBroadcastBackpressure: Boolean

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped