Class ErrorEventHandlerService

java.lang.Object
ch.admin.bit.jeap.errorhandling.domain.eventHandler.ErrorEventHandlerService
All Implemented Interfaces:
ErrorEventHandler

@Component public class ErrorEventHandlerService extends Object implements ErrorEventHandler
  • Constructor Summary

    Constructors
    Constructor
    Description
    ErrorEventHandlerService(ErrorService errorService, CausingEventRepository causingEventRepository, ch.admin.bit.jeap.errorhandling.domain.eventHandler.ErrorEventMapper errorEventMapper, org.springframework.transaction.PlatformTransactionManager transactionManager)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      handle in interface ErrorEventHandler
      Parameters:
      errorEvent - The error for the event which failed to be processed successfully and thus was reported to the error handler.