Class PaymentEventService

java.lang.Object
com.skava.payment.event.PaymentEventService
Direct Known Subclasses:
PaymentEventServiceExt

@Component public class PaymentEventService extends Object
PaymentEventService publishes the event while creating or updating the existing entities using publishEvent(long,java.lang.String,com.skava.payment.model.event.PaymentsEvent) method.
Since:
30 Nov 2018
Author:
Infosys Equinox
  • Constructor Details

    • PaymentEventService

      public PaymentEventService()
  • Method Details

    • init

      @PostConstruct public void init()
      PostConstruct - init method
    • publishEvent

      protected void publishEvent(long collectionId, String routingKey, PaymentsEvent event)
      Parameters:
      collectionId - A long variable. Unique id of a collection.
      routingKey - A String object. The routing key is a message attribute. The exchange might look at this key when deciding how to route the message to queues.
      event - The PaymentsEvent
    • getRoutingKey

      protected String getRoutingKey(String eventName)
      Parameters:
      eventName - A String object. Name of the event/routingkey
      Returns:
      returns A String object. The event/routingkey appended with servicename