org.springframework.cloud.aws.messaging.endpoint.annotation.NotificationMessageMapping Java Examples
The following examples show how to use
org.springframework.cloud.aws.messaging.endpoint.annotation.NotificationMessageMapping.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SnsEndpointController.java From aws-refapp with Apache License 2.0 | 5 votes |
@NotificationMessageMapping public void receiveNotification(@NotificationMessage String message, @NotificationSubject String subject) { LOG.debug("Received SNS message {} with subject {}", message, subject); try { this.snsSendingTextWebSocketHandler.broadcastToSessions(new DataWithTimestamp<>(new SnsNotification(subject, message))); } catch (IOException e) { LOG.error("Was not able to push the message to the client.", e); } }
Example #2
Source File: NotificationMethods.java From spring-cloud-aws with Apache License 2.0 | 4 votes |
@NotificationMessageMapping void handleMethod(@NotificationSubject String subject, @NotificationMessage String message) { }
Example #3
Source File: ComplexNotificationTestController.java From spring-cloud-aws with Apache License 2.0 | 4 votes |
@NotificationMessageMapping void handleNotificationMessage(@NotificationSubject String subject, @NotificationMessage Person message) { this.subject = subject; this.message = message; }
Example #4
Source File: NotificationTestController.java From spring-cloud-aws with Apache License 2.0 | 4 votes |
@NotificationMessageMapping void handleNotificationMessage(@NotificationSubject String subject, @NotificationMessage String message) { this.subject = subject; this.message = message; }
Example #5
Source File: SNSEndpointController.java From tutorials with MIT License | 4 votes |
@NotificationMessageMapping public void receiveNotification(@NotificationMessage String message, @NotificationSubject String subject) { logger.info("Received message: {}, having subject: {}", message, subject); }