![JAR search and dependency download from the Maven repository](/logo.png)
com.redhat.mercury.myprp.notification.CustomerOfferProcedureSink Maven / Gradle / Ivy
The newest version!
package com.redhat.mercury.myprp.notification;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import org.eclipse.microprofile.reactive.messaging.Incoming;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.redhat.mercury.customeroffer.CustomerOffer;
import com.redhat.mercury.model.state.CRStateNotification;
import com.redhat.mercury.myprp.services.impl.PartyRoutingService;
import com.redhat.mercury.notification.NotificationSink;
@ApplicationScoped
public class CustomerOfferProcedureSink implements NotificationSink {
private static final Logger LOGGER = LoggerFactory.getLogger(CustomerOfferProcedureSink.class);
@Inject
PartyRoutingService svc;
@Override
@Incoming(CustomerOffer.CHANNEL_CR_CUSTOMER_OFFER_PROCEDURE)
public void onReceive(CRStateNotification notification) {
LOGGER.info("received {}", notification);
svc.updatePartyRoutingState(notification.getReferenceId(), notification.getState());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy