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.
|
Supplier<CompletionStage<Void>> |
getAck() |
String |
getPayload() |
String |
getSubject()
Get message subject of SNS notification.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addMetadata, getMetadata, getMetadata, getNack, nack, of, of, of, of, of, of, of, of, of, unwrap, withAck, withMetadata, withMetadata, withNack, 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 Supplier<CompletionStage<Void>> getAck()
getAck
in interface Message<String>
CompletionStage
.public String getPayload()
getPayload
in interface Message<String>
public String getSubject()
Copyright © 2018–2021 SmallRye. All rights reserved.