Pull request #539: RED-5151: Fixed message deserialisation problem for downloads
Merge in RED/persistence-service from RED-5151 to master * commit '15cf772113dcc653f463cd403881b2613b061ef0': RED-5151: Fixed message deserialisation problem for downloads
This commit is contained in:
commit
3071a0efeb
@ -18,7 +18,6 @@ import lombok.extern.slf4j.Slf4j;
|
||||
@Slf4j
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
@RabbitListener(queues = MessagingConfiguration.DOWNLOAD_QUEUE)
|
||||
public class DownloadMessageReceiver {
|
||||
|
||||
private final DownloadProcessorService downloadProcessorService;
|
||||
@ -27,6 +26,7 @@ public class DownloadMessageReceiver {
|
||||
|
||||
@SneakyThrows
|
||||
@RabbitHandler
|
||||
@RabbitListener(queues = MessagingConfiguration.DOWNLOAD_QUEUE)
|
||||
public void receive(Message message) throws JsonProcessingException {
|
||||
|
||||
DownloadJob downloadJob = objectMapper.readValue(message.getBody(), DownloadJob.class);
|
||||
|
||||
@ -20,7 +20,6 @@ import lombok.extern.slf4j.Slf4j;
|
||||
@Slf4j
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
@RabbitListener(queues = MessagingConfiguration.REPORT_RESULT_QUEUE)
|
||||
@FieldDefaults(level = AccessLevel.PRIVATE, makeFinal = true)
|
||||
public class DownloadReportMessageReceiver {
|
||||
|
||||
@ -30,6 +29,7 @@ public class DownloadReportMessageReceiver {
|
||||
|
||||
@SneakyThrows
|
||||
@RabbitHandler
|
||||
@RabbitListener(queues = MessagingConfiguration.REPORT_RESULT_QUEUE)
|
||||
public void receive(Message message){
|
||||
|
||||
ReportResultMessage reportResultMessage = objectMapper.readValue(message.getBody(), ReportResultMessage.class);
|
||||
|
||||
@ -21,7 +21,6 @@ import lombok.extern.slf4j.Slf4j;
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
@FieldDefaults(level = AccessLevel.PRIVATE, makeFinal = true)
|
||||
@RabbitListener(queues = MessagingConfiguration.PDFTRON_RESULT_QUEUE)
|
||||
public class RedactionResultMessageReceiver {
|
||||
|
||||
ObjectMapper objectMapper;
|
||||
@ -30,6 +29,7 @@ public class RedactionResultMessageReceiver {
|
||||
|
||||
@SneakyThrows
|
||||
@RabbitHandler
|
||||
@RabbitListener(queues = MessagingConfiguration.PDFTRON_RESULT_QUEUE)
|
||||
public void receive(Message message) throws JsonProcessingException {
|
||||
|
||||
RedactionResultMessage redactionResultMessage = objectMapper.readValue(message.getBody(), RedactionResultMessage.class);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user