Class PubSubMessage
- java.lang.Object
-
- io.smallrye.reactive.messaging.gcp.pubsub.PubSubMessage
-
-
Constructor Summary
Constructors Constructor Description PubSubMessage(com.google.pubsub.v1.PubsubMessage message)
PubSubMessage(com.google.pubsub.v1.PubsubMessage message, com.google.cloud.pubsub.v1.AckReplyConsumer ackReplyConsumer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletionStage<Void>
ack()
Acknowledge this message.boolean
equals(Object o)
com.google.pubsub.v1.PubsubMessage
getMessage()
String
getPayload()
int
hashCode()
String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.microprofile.reactive.messaging.Message
addMetadata, getAck, getMetadata, getMetadata, unwrap, withAck, withMetadata, withMetadata, withPayload
-
-
-
-
Method Detail
-
getMessage
public com.google.pubsub.v1.PubsubMessage getMessage()
-
getPayload
public String getPayload()
- Specified by:
getPayload
in interfaceMessage<String>
- Returns:
- The payload for this message.
-
ack
public CompletionStage<Void> ack()
Description copied from interface:Message
Acknowledge this message.
-
-