Interface SnsPublishMessageConverter
- All Known Implementing Classes:
DefaultSnsPublishMessageConverter
public interface SnsPublishMessageConverter
Converter for transforming Spring messages to SNS PublishRequest.
- Since:
- 4.1.0
- Author:
- Matej Nedic
-
Method Summary
Modifier and TypeMethodDescription<T> io.awspring.cloud.sns.core.async.PublishRequestMessagePair<T> Converts a Spring Message to a PublishRequest.<T> io.awspring.cloud.sns.core.async.PublishRequestMessagePair<T> Converts a payload and headers to a PublishRequest.
-
Method Details
-
convert
Converts a Spring Message to a PublishRequest.- Type Parameters:
T- the message payload type- Parameters:
message- the message to convert- Returns:
- a pair containing the PublishRequest and the original message
-
convert
<T> io.awspring.cloud.sns.core.async.PublishRequestMessagePair<T> convert(T payload, Map<String, Object> headers) Converts a payload and headers to a PublishRequest.- Type Parameters:
T- the payload type- Parameters:
payload- the payload to convertheaders- the headers to include- Returns:
- a pair containing the PublishRequest and the constructed message
-