Class SnsMessage
- java.lang.Object
 - 
- io.smallrye.reactive.messaging.aws.sns.SnsMessage
 
 
- 
- 
Constructor Summary
Constructors Constructor Description SnsMessage(com.amazonaws.services.sns.message.SnsNotification snsNotification)Constructor for AWS SNS.SnsMessage(String payload)Constructor for fake SNS. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletionStage<Void>ack()Acknowledge this message.Supplier<CompletionStage<Void>>getAck()StringgetPayload()StringgetSubject()Get message subject of SNS notification.- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface org.eclipse.microprofile.reactive.messaging.Message
addMetadata, getMetadata, getMetadata, getNack, nack, unwrap, withAck, withMetadata, withMetadata, withNack, withPayload 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
SnsMessage
public SnsMessage(com.amazonaws.services.sns.message.SnsNotification snsNotification)
Constructor for AWS SNS.- Parameters:
 snsNotification- the notification, must not benull
 
- 
SnsMessage
public SnsMessage(String payload)
Constructor for fake SNS.- Parameters:
 payload- the payload.
 
 - 
 
- 
Method Detail
- 
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. 
 
- 
getPayload
public String getPayload()
- Specified by:
 getPayloadin interfaceMessage<String>- Returns:
 - The payload for this message.
 
 
- 
getSubject
public String getSubject()
Get message subject of SNS notification.- Returns:
 - message subject.
 
 
 - 
 
 -