MqttClient

pl.waw.ibspan.scala_mqtt_wrapper.MqttClient
class MqttClient(val mqttSettings: MqttSettings, val mqttSessionSettings: MqttSessionSettings, val loggingSettings: Option[MqttLoggingSettings])(implicit system: ActorSystem[_])

MQTT client

Value parameters

loggingSettings

optional logging settings

mqttSessionSettings

MQTT session settings

mqttSettings

MQTT client settings

system

actor system

Attributes

Constructor

create a new MQTT client

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def shutdown(): Future[Done]

Shutdown the client

Shutdown the client

Shutdowns command queue, command merge sink / command broadcast source, publish merge sink, and event broadcast source (along with the MQTT session)

Attributes

Returns

a future that completes after closing command queue, publish merge sink, and the (optional) event broadcast consumer (if option withEventBroadcastSourceBackpressure is false)

Concrete fields

val commandBroadcastSource: Source[Command[Nothing], NotUsed]
val commandMergeSink: Sink[Command[Nothing], NotUsed]
val commandMergeSinkKillSwitch: UniqueKillSwitch
val commandQueue: SourceQueueWithComplete[Command[Nothing]]
val commandQueueSource: Source[Command[Nothing], SourceQueueWithComplete[Command[Nothing]]]
val connectCommand: Command[Nothing]
val eventBroadcastConsumerFuture: Option[Future[Done]]
val eventBroadcastSource: Source[Either[DecodeError, Event[Nothing]], NotUsed]
val eventBroadcastSourceKillSwitch: UniqueKillSwitch
val initialCommands: List[Command[Nothing]]
val mqttSessionSettings: MqttSessionSettings
val name: String
val publishMergeSink: Sink[MqttPublishMessage, NotUsed]
val publishMergeSinkFuture: Future[Done]
val publishMergeSinkKillSwitch: UniqueKillSwitch
val publishMergeSinkSource: Source[MqttPublishMessage, (Sink[MqttPublishMessage, NotUsed], UniqueKillSwitch)]
val publishMergeSinkSourceWithOptionalLogger: Source[MqttPublishMessage, (Sink[MqttPublishMessage, NotUsed], UniqueKillSwitch)]
val restartingEventSource: Source[Either[DecodeError, Event[Nothing]], NotUsed]
val restartingEventSourceSettings: RestartSettings
val session: ActorMqttClientSession
val sessionFlow: Flow[Command[Nothing], Either[DecodeError, Event[Nothing]], NotUsed]
val subscribeCommands: List[Command[Nothing]]
val tcpConnection: Flow[ByteString, ByteString, Future[OutgoingConnection]]