Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.Podzilla.analytics.messaging;

// import org.springframework.amqp.rabbit.annotation.RabbitListener;
// import com.podzilla.mq.EventsConstants;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import com.podzilla.mq.EventsConstants;
import org.springframework.beans.factory.annotation.Autowired;

import com.podzilla.mq.events.BaseEvent;
Expand All @@ -16,23 +16,23 @@ public class AnalyticsRabbitListener {
@Autowired
private InvokerDispatcher dispatcher;

// @RabbitListener(
// queues = EventsConstants.ANALYTICS_USER_EVENT_QUEUE
// )
@RabbitListener(
queues = EventsConstants.ANALYTICS_USER_EVENT_QUEUE
)
public void handleUserEvents(final BaseEvent userEvent) {
dispatcher.dispatch(userEvent);
}

// @RabbitListener(
// queues = EventsConstants.ANALYTICS_ORDER_EVENT_QUEUE
// )
@RabbitListener(
queues = EventsConstants.ANALYTICS_ORDER_EVENT_QUEUE
)
public void handleOrderEvents(final BaseEvent orderEvent) {
dispatcher.dispatch(orderEvent);
}

// @RabbitListener(
// queues = EventsConstants.ANALYTICS_INVENTORY_EVENT_QUEUE
// )
@RabbitListener(
queues = EventsConstants.ANALYTICS_INVENTORY_EVENT_QUEUE
)
public void handleInventoryEvents(final BaseEvent inventoryEvent) {
dispatcher.dispatch(inventoryEvent);
}
Expand Down