asType method

MqttHeader asType(
  1. MqttMessageType messageType
)

Sets the type of the message identified in the header.

Implementation

MqttHeader asType(MqttMessageType messageType) {
  this.messageType = messageType;
  return this;
}