Class PixConsumer

java.lang.Object
com.bank.payment.consumers.PixConsumer

@Component public class PixConsumer extends Object
Consumer for Pix-related events received from account microservice via RabbitMQ.

Listens to the Pix event queue and processes Pix creation events, converting the received DTO to a model and delegating to the PixService.

  • Queue: ${broker.queue.pixEventQueue}
  • Exchange: ${broker.exchange.pixEventExchange} (type: FANOUT)
Since:
1.0.0
Version:
1.0.0, 06/26/2025
Author:
Fernando Cruz Cavina
  • Constructor Details

    • PixConsumer

      public PixConsumer()
  • Method Details

    • listenPixEvent

      @RabbitListener(bindings=) public void listenPixEvent(@Payload PixEventDto pixEventDto)
      Listens for Pix events and saves them according to the action type.
      Parameters:
      pixEventDto - the Pix event data received from the queue