MqttSettings

pl.waw.ibspan.scala_mqtt_wrapper.MqttSettings
final case class MqttSettings(host: String, port: Int, username: String, password: String, subscriptions: Seq[MqttTopic], clientId: String, sessionId: ByteString, connectFlags: ConnectFlags, restartMinBackoff: FiniteDuration, restartMaxBackoff: FiniteDuration, restartRandomFactor: Double, maxRestarts: Int, restartLogLevel: LogLevel, commandMergeSinkPerProducerBufferSize: Int, commandBroadcastSourceBufferSize: Int, eventBroadcastSourceBufferSize: Int, withEventBroadcastSourceBackpressure: Boolean, publishMergeSinkPerProducerBufferSize: Int, commandQueueBufferSize: Int)

MQTT client settings

Value parameters

clientId

MQTT client ID

commandBroadcastSourceBufferSize

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

commandMergeSinkPerProducerBufferSize

buffer space used per producer for command sink merge hub

commandQueueBufferSize

MQTT command queue buffer size

connectFlags

MQTT connect flags

eventBroadcastSourceBufferSize

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

host

MQTT host

maxRestarts

MQTT maximum restarts, set to -1 for infinite restarts

password

MQTT password

port

MQTT port

publishMergeSinkPerProducerBufferSize

buffer space used per producer for publish merge sink

restartLogLevel

MQTT restart log level

restartMaxBackoff

MQTT restart maximum backoff

restartMinBackoff

MQTT restart minimum backoff

restartRandomFactor

MQTT restart random factor, random delay is added based on this factor

sessionId

MQTT session ID

subscriptions

MQTT topics to subscribe to

username

MQTT username

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

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product