package scala_mqtt_wrapper
- Alphabetic
- Public
- Protected
Type Members
- class MqttClient extends LazyLogging
MQTT client
- 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
- final case class MqttTopic(name: String) extends Product with Serializable
MQTT topic
MQTT topic
- name
topic name
Value Members
- object MqttSink extends LazyLogging
- object MqttSource extends LazyLogging