java.lang.Object
es.kukenan.smartfi.kafka.controller.AbstractKafkaController<es.kukenan.smartfi.events.common.AbstractEvent>
es.kukenan.smartfi.microservice.backoffice.controller.KafkaController

@Component @KafkaListener(id="${spring.kafka.consumer.group-id}", topics="${topic.exchange.name}") public class KafkaController extends es.kukenan.smartfi.kafka.controller.AbstractKafkaController<es.kukenan.smartfi.events.common.AbstractEvent>
Kafka Events handle controller.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Users service.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    consume(es.kukenan.smartfi.microservice.backoffice.events.update.BackOfficeAppointmentUpdatedEvent event)
    Method that is invoked when a BackOfficeAppointmentUpdatedEvent is consumed from the service queue.
    void
    unknown(Object object)
    Default not handled event.

    Methods inherited from class es.kukenan.smartfi.kafka.controller.AbstractKafkaController

    publish

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • appointmentService

      @Autowired private AppointmentService appointmentService
      Users service.
  • Constructor Details

    • KafkaController

      public KafkaController()
  • Method Details

    • consume

      @KafkaHandler public void consume(es.kukenan.smartfi.microservice.backoffice.events.update.BackOfficeAppointmentUpdatedEvent event)
      Method that is invoked when a BackOfficeAppointmentUpdatedEvent is consumed from the service queue.
      Parameters:
      event - BackOfficeAppointmentUpdatedEvent.
    • unknown

      @KafkaHandler(isDefault=true) public void unknown(Object object)
      Default not handled event.
      Parameters:
      object - all events object.