Merge branch 'clari-30' into 'master'
orchestrator/persistence service should control queues See merge request fforesight/ocr-service!42
This commit is contained in:
commit
b5a78a4396
@ -13,34 +13,8 @@ public class MessagingConfiguration {
|
||||
|
||||
public static final String OCR_REQUEST_QUEUE = "ocr_request_queue";
|
||||
public static final String OCR_RESPONSE_QUEUE = "ocr_response_queue";
|
||||
public static final String OCR_DLQ = "ocr_dead_letter_queue";
|
||||
|
||||
public static final String X_DEAD_LETTER_EXCHANGE = "x-dead-letter-exchange";
|
||||
public static final String X_DEAD_LETTER_ROUTING_KEY = "x-dead-letter-routing-key";
|
||||
public static final String X_MAX_PRIORITY = "x-max-priority";
|
||||
|
||||
public static final String OCR_STATUS_UPDATE_RESPONSE_QUEUE = "ocr_status_update_response_queue";
|
||||
|
||||
public static final String X_ERROR_INFO_HEADER = "x-error-message";
|
||||
public static final String X_ERROR_INFO_TIMESTAMP_HEADER = "x-error-message-timestamp";
|
||||
|
||||
|
||||
@Bean
|
||||
public Queue ocrQueue() {
|
||||
|
||||
return QueueBuilder.durable(OCR_REQUEST_QUEUE)
|
||||
.withArgument(X_DEAD_LETTER_EXCHANGE, "")
|
||||
.withArgument(X_DEAD_LETTER_ROUTING_KEY, OCR_DLQ)
|
||||
.withArgument(X_MAX_PRIORITY, 2)
|
||||
.maxPriority(2)
|
||||
.build();
|
||||
}
|
||||
|
||||
|
||||
@Bean
|
||||
public Queue ocrDeadLetterQueue() {
|
||||
|
||||
return QueueBuilder.durable(OCR_DLQ).build();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user