Constructor and Description |
---|
SnsMessage(com.amazonaws.services.sns.message.SnsNotification snsNotification)
Constructor for AWS SNS.
|
SnsMessage(String payload)
Constructor for fake SNS.
|
Modifier and Type | Method and Description |
---|---|
CompletionStage<Void> |
ack()
Acknowledge this message.
|
String |
getPayload() |
String |
getSubject()
Get message subject of SNS notification.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addMetadata, getAck, getMetadata, getMetadata, of, of, of, of, of, of, unwrap, withAck, withMetadata, withMetadata, withPayload
public SnsMessage(com.amazonaws.services.sns.message.SnsNotification snsNotification)
snsNotification
- the notification, must not be null
public SnsMessage(String payload)
payload
- the payload.public CompletionStage<Void> ack()
Message
public String getPayload()
getPayload
in interface Message<String>
public String getSubject()
Copyright © 2018–2020 SmallRye. All rights reserved.