Class AccountEventPublisher

java.lang.Object
com.bank.payment.publishers.AccountEventPublisher

@Component public class AccountEventPublisher extends Object
Publisher for sending account-related events to RabbitMQ. Publishes events to the account event exchange for account creation and updates.
Since:
1.0.0
Version:
1.0.0, 06/26/2025
Author:
Fernando Cruz Cavina
  • Constructor Details

    • AccountEventPublisher

      public AccountEventPublisher()
  • Method Details

    • publishAccountEvent

      public void publishAccountEvent(AccountEventDto accountEventDto, ActionType actionType)
      Publishes an account event to the account event exchange.
      Parameters:
      accountEventDto - the account event data
      actionType - the type of action (CREATE, UPDATE, etc.)