Package com.skava.payment.event
Class PaymentEventService
java.lang.Object
com.skava.payment.event.PaymentEventService
- Direct Known Subclasses:
PaymentEventServiceExt
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
getRoutingKey
(String eventName) void
init()
PostConstruct - init methodprotected void
publishEvent
(long collectionId, String routingKey, PaymentsEvent event)
-
Constructor Details
-
PaymentEventService
public PaymentEventService()
-
-
Method Details
-
init
@PostConstruct public void init()PostConstruct - init method -
publishEvent
- Parameters:
collectionId
- A long variable. Unique id of a collection.routingKey
- AString
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
- ThePaymentsEvent
-
getRoutingKey
-