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.String
getPayload()
String
getSubject()
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, getAck, 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:Message
Acknowledge this message.
-
getPayload
public String getPayload()
- Specified by:
getPayload
in interfaceMessage<String>
- Returns:
- The payload for this message.
-
getSubject
public String getSubject()
Get message subject of SNS notification.- Returns:
- message subject.
-
-