Class TmaEventEmitStrategy

java.lang.Object
de.hybris.platform.b2ctelcotmfeventshttpclient.strategies.TmaEventEmitStrategy
All Implemented Interfaces:
de.hybris.platform.apiregistryservices.strategies.EventEmitStrategy

public class TmaEventEmitStrategy extends Object implements de.hybris.platform.apiregistryservices.strategies.EventEmitStrategy
Custom implementation of EventEmitStrategy for sending events on TMF channel.
Since:
2105
  • Constructor Details

    • TmaEventEmitStrategy

      public TmaEventEmitStrategy(de.hybris.platform.outboundservices.client.IntegrationRestTemplateFactory integrationRestTemplateFactory, TmaEventExportDeadLetterDataBuilder tmaEventExportDeadLetterDataBuilder, de.hybris.platform.apiregistryservices.services.EventDlqService eventDlqService)
  • Method Details

    • sendEvent

      public void sendEvent(Object payload)
      Will send an HTTP call with the Event data to the ConsumedDestinationModels configured for the event using IntegrationRestTemplateFactory and RestOperations for the HTTP calls. In case of HTTP exception will add the event to the event dead letter queue.
      Specified by:
      sendEvent in interface de.hybris.platform.apiregistryservices.strategies.EventEmitStrategy
      Parameters:
      payload - containing the event data and its configurations.
    • createRequestEntity

      protected org.springframework.http.RequestEntity<Event> createRequestEntity(Event event, String url)
    • getTmaEventExportDeadLetterDataBuilder

      protected TmaEventExportDeadLetterDataBuilder getTmaEventExportDeadLetterDataBuilder()
    • getEventDlqService

      protected de.hybris.platform.apiregistryservices.services.EventDlqService getEventDlqService()
    • getRestTemplateFactory

      protected de.hybris.platform.outboundservices.client.IntegrationRestTemplateFactory getRestTemplateFactory()