Class ReceivingMqttMessage
java.lang.Object
io.smallrye.reactive.messaging.mqtt.ReceivingMqttMessage
- All Implemented Interfaces:
MqttMessage<byte[]>,ContextAwareMessage<byte[]>,org.eclipse.microprofile.reactive.messaging.Message<byte[]>
-
Field Summary
Fields inherited from interface org.eclipse.microprofile.reactive.messaging.Message
EMPTY_ACK, EMPTY_NACK, LOGGER -
Method Summary
Modifier and TypeMethodDescriptionintorg.eclipse.microprofile.reactive.messaging.MetadataBiFunction<Throwable,org.eclipse.microprofile.reactive.messaging.Metadata, CompletionStage<Void>> byte[]io.netty.handler.codec.mqtt.MqttQoSgetTopic()booleanbooleanisRetain()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.smallrye.reactive.messaging.providers.locals.ContextAwareMessage
getContextMetadata, runOnMessageContextMethods inherited from interface org.eclipse.microprofile.reactive.messaging.Message
ack, ack, addMetadata, getAck, getAckWithMetadata, getMetadata, getNack, nack, thenApply, unwrap, withAckWithMetadata, withMetadata, withMetadata, withNack, withNackWithMetadata, withPayloadMethods inherited from interface io.smallrye.reactive.messaging.mqtt.MqttMessage
withAck
-
Method Details
-
getPayload
public byte[] getPayload()- Specified by:
getPayloadin interfaceorg.eclipse.microprofile.reactive.messaging.Message<byte[]>
-
getMetadata
public org.eclipse.microprofile.reactive.messaging.Metadata getMetadata()- Specified by:
getMetadatain interfaceorg.eclipse.microprofile.reactive.messaging.Message<byte[]>
-
getMessageId
public int getMessageId()- Specified by:
getMessageIdin interfaceMqttMessage<byte[]>
-
getQosLevel
public io.netty.handler.codec.mqtt.MqttQoS getQosLevel()- Specified by:
getQosLevelin interfaceMqttMessage<byte[]>
-
isDuplicate
public boolean isDuplicate()- Specified by:
isDuplicatein interfaceMqttMessage<byte[]>
-
isRetain
public boolean isRetain()- Specified by:
isRetainin interfaceMqttMessage<byte[]>
-
getTopic
- Specified by:
getTopicin interfaceMqttMessage<byte[]>
-
nack
public CompletionStage<Void> nack(Throwable reason, org.eclipse.microprofile.reactive.messaging.Metadata metadata) - Specified by:
nackin interfaceorg.eclipse.microprofile.reactive.messaging.Message<byte[]>
-
getNackWithMetadata
public BiFunction<Throwable,org.eclipse.microprofile.reactive.messaging.Metadata, getNackWithMetadata()CompletionStage<Void>> - Specified by:
getNackWithMetadatain interfaceorg.eclipse.microprofile.reactive.messaging.Message<byte[]>
-