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 Summary
ConstructorsConstructorDescriptionTmaEventEmitStrategy(de.hybris.platform.outboundservices.client.IntegrationRestTemplateFactory integrationRestTemplateFactory, TmaEventExportDeadLetterDataBuilder tmaEventExportDeadLetterDataBuilder, de.hybris.platform.apiregistryservices.services.EventDlqService eventDlqService) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.http.RequestEntity<Event>createRequestEntity(Event event, String url) protected de.hybris.platform.apiregistryservices.services.EventDlqServiceprotected de.hybris.platform.outboundservices.client.IntegrationRestTemplateFactoryprotected TmaEventExportDeadLetterDataBuildervoidWill send an HTTP call with the Event data to theConsumedDestinationModels configured for the event usingIntegrationRestTemplateFactoryandRestOperationsfor the HTTP calls.
-
Constructor Details
-
TmaEventEmitStrategy
public TmaEventEmitStrategy(de.hybris.platform.outboundservices.client.IntegrationRestTemplateFactory integrationRestTemplateFactory, TmaEventExportDeadLetterDataBuilder tmaEventExportDeadLetterDataBuilder, de.hybris.platform.apiregistryservices.services.EventDlqService eventDlqService)
-
-
Method Details
-
sendEvent
Will send an HTTP call with the Event data to theConsumedDestinationModels configured for the event usingIntegrationRestTemplateFactoryandRestOperationsfor the HTTP calls. In case of HTTP exception will add the event to the event dead letter queue.- Specified by:
sendEventin interfacede.hybris.platform.apiregistryservices.strategies.EventEmitStrategy- Parameters:
payload- containing the event data and its configurations.
-
createRequestEntity
-
getTmaEventExportDeadLetterDataBuilder
-
getEventDlqService
protected de.hybris.platform.apiregistryservices.services.EventDlqService getEventDlqService() -
getRestTemplateFactory
protected de.hybris.platform.outboundservices.client.IntegrationRestTemplateFactory getRestTemplateFactory()
-