Class KymaEventEmitStrategy
- java.lang.Object
-
- de.hybris.platform.kymaintegrationservices.strategies.impl.KymaEventEmitStrategy
-
- All Implemented Interfaces:
EventEmitStrategy
public class KymaEventEmitStrategy extends java.lang.Object implements EventEmitStrategy
Implementation of @EventEmitStrategyfor kyma event emitting with retries
-
-
Constructor Summary
Constructors Constructor Description KymaEventEmitStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected DestinationService<AbstractDestinationModel>getDestinationService()protected org.springframework.messaging.MessageChannelgetEventChannel()protected AbstractDestinationModelgetEventDestination()Deprecated, for removal: This API element is subject to removal in a future version.since 1905.protected AbstractDestinationModelgetEventDestination(java.lang.String destinationTargetId)protected EventDlqServicegetEventDlqService()protected com.fasterxml.jackson.databind.ObjectMappergetJacksonObjectMapper()protected Converter<PublishRequestData,JsonPublishRequestData>getKymaJsonEventConverter()protected ModelServicegetModelService()protected RestTemplateWrappergetRestTemplate()Deprecated, for removal: This API element is subject to removal in a future version.since 1905, for naming convention.protected RestTemplateWrappergetRestTemplateWrapper()protected TaskServicegetTaskService()protected voidhandleFailedEvent(java.lang.Exception e, PublishRequestData publishRequestData)protected booleanretryEventEmitting(org.springframework.http.HttpEntity<java.lang.String> request, PublishRequestData publishRequestData, java.lang.String url, AbstractDestinationModel destination)protected voidscheduleEventEmitTask(org.springframework.messaging.Message message, PublishRequestData publishRequestData)voidsendEvent(java.lang.Object object)protected voidsendPublishRequestData(org.springframework.messaging.Message message, PublishRequestData publishRequestData)protected voidsendToDlq(PublishRequestData publishRequestData, DestinationTargetModel destinationTarget, java.lang.String error)voidsetDestinationService(DestinationService<AbstractDestinationModel> destinationService)voidsetEventChannel(org.springframework.messaging.MessageChannel eventChannel)voidsetEventDlqService(EventDlqService eventDlqService)voidsetJacksonObjectMapper(com.fasterxml.jackson.databind.ObjectMapper jacksonObjectMapper)voidsetKymaJsonEventConverter(Converter<PublishRequestData,JsonPublishRequestData> kymaJsonEventConverter)voidsetModelService(ModelService modelService)voidsetRestTemplate(RestTemplateWrapper restTemplate)Deprecated, for removal: This API element is subject to removal in a future version.since 1905, for naming convention.voidsetRestTemplateWrapper(RestTemplateWrapper restTemplateWrapper)voidsetTaskService(TaskService taskService)protected booleanshouldSendToDlq(java.lang.Exception e)
-
-
-
Method Detail
-
sendEvent
public void sendEvent(java.lang.Object object)
- Specified by:
sendEventin interfaceEventEmitStrategy
-
sendPublishRequestData
protected void sendPublishRequestData(org.springframework.messaging.Message message, PublishRequestData publishRequestData)
-
handleFailedEvent
protected void handleFailedEvent(java.lang.Exception e, PublishRequestData publishRequestData)
-
scheduleEventEmitTask
protected void scheduleEventEmitTask(org.springframework.messaging.Message message, PublishRequestData publishRequestData)
-
retryEventEmitting
protected boolean retryEventEmitting(org.springframework.http.HttpEntity<java.lang.String> request, PublishRequestData publishRequestData, java.lang.String url, AbstractDestinationModel destination)
-
shouldSendToDlq
protected boolean shouldSendToDlq(java.lang.Exception e)
-
sendToDlq
protected void sendToDlq(PublishRequestData publishRequestData, DestinationTargetModel destinationTarget, java.lang.String error)
-
getEventDestination
@Deprecated(since="1905", forRemoval=true) protected AbstractDestinationModel getEventDestination()Deprecated, for removal: This API element is subject to removal in a future version.since 1905. UsegetEventDestination(String)
-
getEventDestination
protected AbstractDestinationModel getEventDestination(java.lang.String destinationTargetId)
-
getModelService
protected ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
getTaskService
protected TaskService getTaskService()
-
setTaskService
public void setTaskService(TaskService taskService)
-
getRestTemplate
@Deprecated(since="1905", forRemoval=true) protected RestTemplateWrapper getRestTemplate()Deprecated, for removal: This API element is subject to removal in a future version.since 1905, for naming convention. Use getRestTemplateWrapper instead.
-
getRestTemplateWrapper
protected RestTemplateWrapper getRestTemplateWrapper()
-
setRestTemplate
@Deprecated(since="1905", forRemoval=true) public void setRestTemplate(RestTemplateWrapper restTemplate)Deprecated, for removal: This API element is subject to removal in a future version.since 1905, for naming convention. Use setRestTemplateWrapper instead.
-
setRestTemplateWrapper
public void setRestTemplateWrapper(RestTemplateWrapper restTemplateWrapper)
-
getDestinationService
protected DestinationService<AbstractDestinationModel> getDestinationService()
-
setDestinationService
public void setDestinationService(DestinationService<AbstractDestinationModel> destinationService)
-
getEventDlqService
protected EventDlqService getEventDlqService()
-
setEventDlqService
public void setEventDlqService(EventDlqService eventDlqService)
-
getJacksonObjectMapper
protected com.fasterxml.jackson.databind.ObjectMapper getJacksonObjectMapper()
-
setJacksonObjectMapper
public void setJacksonObjectMapper(com.fasterxml.jackson.databind.ObjectMapper jacksonObjectMapper)
-
getEventChannel
protected org.springframework.messaging.MessageChannel getEventChannel()
-
setEventChannel
public void setEventChannel(org.springframework.messaging.MessageChannel eventChannel)
-
getKymaJsonEventConverter
protected Converter<PublishRequestData,JsonPublishRequestData> getKymaJsonEventConverter()
-
setKymaJsonEventConverter
public void setKymaJsonEventConverter(Converter<PublishRequestData,JsonPublishRequestData> kymaJsonEventConverter)
-
-