Class ErrorEventHandlerService
java.lang.Object
ch.admin.bit.jeap.errorhandling.domain.eventHandler.ErrorEventHandlerService
- All Implemented Interfaces:
ErrorEventHandler
-
Constructor Summary
ConstructorsConstructorDescriptionErrorEventHandlerService(ErrorService errorService, CausingEventRepository causingEventRepository, ch.admin.bit.jeap.errorhandling.domain.eventHandler.ErrorEventMapper errorEventMapper, org.springframework.transaction.PlatformTransactionManager transactionManager) -
Method Summary
-
Constructor Details
-
ErrorEventHandlerService
public ErrorEventHandlerService(ErrorService errorService, CausingEventRepository causingEventRepository, ch.admin.bit.jeap.errorhandling.domain.eventHandler.ErrorEventMapper errorEventMapper, org.springframework.transaction.PlatformTransactionManager transactionManager)
-
-
Method Details
-
handle
public void handle(String clusterName, ch.admin.bit.jeap.messaging.avro.errorevent.MessageProcessingFailedEvent errorEvent) Do whatever needs to be done for a failed event reported to the error handler by a micro service.- Specified by:
handlein interfaceErrorEventHandler- Parameters:
errorEvent- The error for the event which failed to be processed successfully and thus was reported to the error handler.
-