final case class Command[A](command: ControlPacket, completed: Option[Promise[Done]], carry: Option[A]) extends Product with Serializable
Send a command to an MQTT session with optional data to carry through into any related event.
- A
The type of data to carry through
- command
The command to send
- completed
A promise that is completed by the session when the command has been processed - useful for synchronizing when activities should occur in relation to a command The only commands that support this presently are SubAck, UnsubAck, PubAck, PubRec and PubComp. These completions can be used to signal when processing should continue.
- carry
The data to carry though
- Source
- model.scala
- Alphabetic
- By Inheritance
- Command
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Command(command: ControlPacket, carry: A)
Send a command to an MQTT session with data to carry through into any related event.
Send a command to an MQTT session with data to carry through into any related event.
- command
The command to send
- carry
The data to carry through
- new Command(command: ControlPacket)
Send a command to an MQTT session
Send a command to an MQTT session
- command
The command to send
- new Command(command: ControlPacket, completed: Optional[CompletionStage[Done]], carry: Optional[A])
JAVA API
JAVA API
Send a command to an MQTT session with optional data to carry through into any related event.
- command
The command to send
- completed
A promise that is completed by the session when the command has been processed - useful for synchronizing when activities should occur in relation to a command The only commands that support this presently are SubAck, UnsubAck, PubAck, PubRec and PubComp. These completions can be used to signal when processing should continue.
- carry
The data to carry though
- new Command(command: ControlPacket, completed: Option[Promise[Done]], carry: Option[A])
- command
The command to send
- completed
A promise that is completed by the session when the command has been processed - useful for synchronizing when activities should occur in relation to a command The only commands that support this presently are SubAck, UnsubAck, PubAck, PubRec and PubComp. These completions can be used to signal when processing should continue.
- carry
The data to carry though
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val carry: Option[A]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val command: ControlPacket
- val completed: Option[Promise[Done]]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()