org.springframework.cloud.aws.messaging.config.annotation.NotificationMessage Java Examples
The following examples show how to use
org.springframework.cloud.aws.messaging.config.annotation.NotificationMessage.
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: NotificationMessagingTemplateIntegrationTest.java From spring-cloud-aws with Apache License 2.0 | 5 votes |
@RuntimeUse @SqsListener("NotificationQueue") private void messageListener(@NotificationSubject String subject, @NotificationMessage TestPerson message) { this.subject = subject; this.message = message; this.countDownLatch.countDown(); }
Example #2
Source File: QueueMessageHandlerTest.java From spring-cloud-aws with Apache License 2.0 | 5 votes |
@RuntimeUse @SqsListener("testQueue") public void receive(@NotificationSubject String subject, @NotificationMessage String message) { this.subject = subject; this.message = message; }
Example #3
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 #4
Source File: NotificationMessageArgumentResolver.java From spring-cloud-aws with Apache License 2.0 | 4 votes |
@Override public boolean supportsParameter(MethodParameter parameter) { return parameter.hasParameterAnnotation(NotificationMessage.class); }
Example #5
Source File: NotificationMessageHandlerMethodArgumentResolver.java From spring-cloud-aws with Apache License 2.0 | 4 votes |
@Override public boolean supportsParameter(MethodParameter parameter) { return (parameter.hasParameterAnnotation(NotificationMessage.class)); }
Example #6
Source File: NotificationMessageArgumentResolverTest.java From spring-cloud-aws with Apache License 2.0 | 4 votes |
@SuppressWarnings("EmptyMethod") @RuntimeUse private void methodWithNotificationMessageArgument( @NotificationMessage String message) { }
Example #7
Source File: NotificationMessageArgumentResolverTest.java From spring-cloud-aws with Apache License 2.0 | 4 votes |
@SuppressWarnings("EmptyMethod") @RuntimeUse private void methodWithWrongParameterType(@NotificationMessage Long test) { }
Example #8
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 #9
Source File: NotificationMethods.java From spring-cloud-aws with Apache License 2.0 | 4 votes |
@SuppressWarnings("EmptyMethod") @RuntimeUse void methodWithIntegerParameterType(@NotificationMessage Integer message) { }
Example #10
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 #11
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 #12
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); }