@Test void receiveAndConvert_withoutDefaultDestination_throwsAnException() { AmazonSQSAsync amazonSqs = createAmazonSqs(); QueueMessagingTemplate queueMessagingTemplate = new QueueMessagingTemplate( amazonSqs); assertThatThrownBy(() -> queueMessagingTemplate.receiveAndConvert(String.class)) .isInstanceOf(IllegalStateException.class); }
@Override public <T> T receiveAndConvert(Class<T> targetClass) throws MessagingException { return receiveAndConvert(getRequiredDefaultDestination(), targetClass); }
QueueMessagingTemplate extends AbstractMessageChannelMessagingSendingTemplate<QueueMessageChannel> implements DestinationResolvingMessageReceivingOperations<QueueMessageChannel> { @Override public <T> T receiveAndConvert(Class<T> targetClass) throws MessagingException { return receiveAndConvert(getRequiredDefaultDestination(), targetClass); } }
QueueMessagingTemplate extends AbstractMessageChannelMessagingSendingTemplate<QueueMessageChannel> implements DestinationResolvingMessageReceivingOperations<QueueMessageChannel> { @Override public <T> T receiveAndConvert(Class<T> targetClass) throws MessagingException { return receiveAndConvert(getRequiredDefaultDestination(), targetClass); } QueueMessagingTemplate(AmazonSQSAsync amazonSqs);  QueueMessagingTemplate(AmazonSQSAsync amazonSqs,
			ResourceIdResolver resourceIdResolver);  QueueMessagingTemplate(AmazonSQSAsync amazonSqs,
			ResourceIdResolver resourceIdResolver, MessageConverter messageConverter);  QueueMessagingTemplate(AmazonSQSAsync amazonSqs,
			DestinationResolver<String> destinationResolver,
			MessageConverter messageConverter); }
QueueMessagingTemplate extends AbstractMessageChannelMessagingSendingTemplate<QueueMessageChannel> implements DestinationResolvingMessageReceivingOperations<QueueMessageChannel> { @Override public <T> T receiveAndConvert(Class<T> targetClass) throws MessagingException { return receiveAndConvert(getRequiredDefaultDestination(), targetClass); } QueueMessagingTemplate(AmazonSQSAsync amazonSqs);  QueueMessagingTemplate(AmazonSQSAsync amazonSqs,
			ResourceIdResolver resourceIdResolver);  QueueMessagingTemplate(AmazonSQSAsync amazonSqs,
			ResourceIdResolver resourceIdResolver, MessageConverter messageConverter);  QueueMessagingTemplate(AmazonSQSAsync amazonSqs,
			DestinationResolver<String> destinationResolver,
			MessageConverter messageConverter); @Override Message<?> receive(); @Override Message<?> receive(QueueMessageChannel destination); @Override T receiveAndConvert(Class<T> targetClass); @SuppressWarnings("unchecked") @Override T receiveAndConvert(QueueMessageChannel destination, Class<T> targetClass); @Override Message<?> receive(String destinationName); @Override T receiveAndConvert(String destinationName, Class<T> targetClass); }
QueueMessagingTemplate extends AbstractMessageChannelMessagingSendingTemplate<QueueMessageChannel> implements DestinationResolvingMessageReceivingOperations<QueueMessageChannel> { @Override public <T> T receiveAndConvert(Class<T> targetClass) throws MessagingException { return receiveAndConvert(getRequiredDefaultDestination(), targetClass); } QueueMessagingTemplate(AmazonSQSAsync amazonSqs);  QueueMessagingTemplate(AmazonSQSAsync amazonSqs,
			ResourceIdResolver resourceIdResolver);  QueueMessagingTemplate(AmazonSQSAsync amazonSqs,
			ResourceIdResolver resourceIdResolver, MessageConverter messageConverter);  QueueMessagingTemplate(AmazonSQSAsync amazonSqs,
			DestinationResolver<String> destinationResolver,
			MessageConverter messageConverter); @Override Message<?> receive(); @Override Message<?> receive(QueueMessageChannel destination); @Override T receiveAndConvert(Class<T> targetClass); @SuppressWarnings("unchecked") @Override T receiveAndConvert(QueueMessageChannel destination, Class<T> targetClass); @Override Message<?> receive(String destinationName); @Override T receiveAndConvert(String destinationName, Class<T> targetClass);  }