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)
Supplier<CompletionStage<Void>>
getAck()
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, getMetadata, getMetadata, getNack, nack, nack, unwrap, withAck, withMetadata, withMetadata, withNack, 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.
-
getAck
public Supplier<CompletionStage<Void>> getAck()
- Specified by:
getAck
in interfaceMessage<String>
- Returns:
- the supplier used to retrieve the acknowledgement
CompletionStage
.
-
-