public class NotificationMessagingTemplate extends AbstractMessageChannelMessagingSendingTemplate<TopicMessageChannel>
| Constructor and Description |
|---|
NotificationMessagingTemplate(com.amazonaws.services.sns.AmazonSNS amazonSns) |
NotificationMessagingTemplate(com.amazonaws.services.sns.AmazonSNS amazonSns,
org.springframework.messaging.core.DestinationResolver<String> destinationResolver,
org.springframework.messaging.converter.MessageConverter messageConverter) |
NotificationMessagingTemplate(com.amazonaws.services.sns.AmazonSNS amazonSns,
org.springframework.cloud.aws.core.env.ResourceIdResolver resourceIdResolver) |
NotificationMessagingTemplate(com.amazonaws.services.sns.AmazonSNS amazonSns,
org.springframework.cloud.aws.core.env.ResourceIdResolver resourceIdResolver,
org.springframework.messaging.converter.MessageConverter messageConverter) |
| Modifier and Type | Method and Description |
|---|---|
protected TopicMessageChannel |
resolveMessageChannel(String physicalResourceIdentifier) |
void |
sendNotification(Object message,
String subject)
Convenience method that sends a notification with the given message and subject to the destination.
|
void |
sendNotification(String destinationName,
Object message,
String subject)
Convenience method that sends a notification with the given message and subject to the destination.
|
convertAndSend, convertAndSend, convertAndSend, convertAndSend, doSend, initMessageConverter, resolveMessageChannelByLogicalName, send, setDefaultDestinationNameconvertAndSend, convertAndSend, convertAndSend, convertAndSend, convertAndSend, convertAndSend, doConvert, getDefaultDestination, getMessageConverter, getRequiredDefaultDestination, processHeadersToSend, send, send, setDefaultDestination, setMessageConverterpublic NotificationMessagingTemplate(com.amazonaws.services.sns.AmazonSNS amazonSns)
public NotificationMessagingTemplate(com.amazonaws.services.sns.AmazonSNS amazonSns,
org.springframework.cloud.aws.core.env.ResourceIdResolver resourceIdResolver)
public NotificationMessagingTemplate(com.amazonaws.services.sns.AmazonSNS amazonSns,
org.springframework.cloud.aws.core.env.ResourceIdResolver resourceIdResolver,
org.springframework.messaging.converter.MessageConverter messageConverter)
public NotificationMessagingTemplate(com.amazonaws.services.sns.AmazonSNS amazonSns,
org.springframework.messaging.core.DestinationResolver<String> destinationResolver,
org.springframework.messaging.converter.MessageConverter messageConverter)
protected TopicMessageChannel resolveMessageChannel(String physicalResourceIdentifier)
resolveMessageChannel in class AbstractMessageChannelMessagingSendingTemplate<TopicMessageChannel>public void sendNotification(String destinationName, Object message, String subject)
destinationName - The logical name of the destinationmessage - The message to sendsubject - The subject to sendpublic void sendNotification(Object message, String subject)
message - The message to sendsubject - The subject to sendCopyright © 2019 Pivotal Software, Inc.. All rights reserved.