Packages

p

pl.waw.ibspan

scala_mqtt_wrapper

package scala_mqtt_wrapper

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Type Members

  1. class MqttClient extends LazyLogging

    MQTT client

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

    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

  3. final case class MqttTopic(name: String) extends Product with Serializable

    MQTT topic

    MQTT topic

    name

    topic name

Value Members

  1. object MqttSink extends LazyLogging
  2. object MqttSource extends LazyLogging

Ungrouped