Histórico da Página
...
Bloco de código | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
@AllArgsConstructor @RabbitListener(queues = QUEUE) public class ArquivoSubscriber { private static final String QUEUE = "coleta-entrega-exchange.${spring.application.name}" private final ArquivoApplicationService service; private final VerificarTenantValidoService verificarTenantValidoService; private final ArquivoRejeitadoApplicationService serviceRejeitada; @RabbitListener @RabbitHandler public void uploadArquivo(@Payload UploadArquivoCmd cmd) { if (verificarTenantValidoService.tenantValido(cmd)) { try { var appCmd = ArquivoCmdAssembler.toCommand(cmd); service.handle(appCmd); } catch (Exception exception) { serviceRejeitada.handle(ArquivoCmdAssembler.toCommand(cmd, exception)); } } } } |
...
Bloco de código | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
tjf: messaging: amqp: error: exchange: <<exchangeErro>> exchanges: topicExchanges: - name: <<exchangeErro>> durable: true autoDelete: false queues: queuesList: - name: <<exchangeErro>>.<<filaErro>> durable: true autoDelete: false exclusive: false queue-dlq: <<filaErro>> bindings: bindingsList: - destination: <<filaErro>> exchange: <<exchangeErro>> destinationType: queue |
...
...
Visão Geral
Import HTML Content
Conteúdo das Ferramentas
Tarefas