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.booleanequals(Object o)Supplier<CompletionStage<Void>>getAck()com.google.pubsub.v1.PubsubMessagegetMessage()StringgetPayload()inthashCode()StringtoString()- 
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, unwrap, withAck, withMetadata, withMetadata, withNack, withPayload 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getMessage
public com.google.pubsub.v1.PubsubMessage getMessage()
 
- 
getPayload
public String getPayload()
- Specified by:
 getPayloadin interfaceMessage<String>- Returns:
 - The payload for this message.
 
 
- 
ack
public CompletionStage<Void> ack()
Description copied from interface:MessageAcknowledge this message. 
- 
getAck
public Supplier<CompletionStage<Void>> getAck()
- Specified by:
 getAckin interfaceMessage<String>- Returns:
 - the supplier used to retrieve the acknowledgement 
CompletionStage. 
 
 - 
 
 -