Class KafkaHandler

  • All Implemented Interfaces:
    org.swisspush.gateleen.core.configuration.ConfigurationResourceObserver

    public class KafkaHandler
    extends org.swisspush.gateleen.core.configuration.ConfigurationResourceConsumer
    Handler class for all Kafka related requests. The main responsibilities for this handler are:
    • Manage kafka configuration resource
    • Manage the lifecycle of KafkaProducer based on the kafka configuration resource
    • Convert requests to messages and forward them to kafka
    Author:
    https://github.com/mcweba [Marc-Andre Weber]
    • Method Detail

      • initialize

        public io.vertx.core.Future<Void> initialize()
      • isInitialized

        public boolean isInitialized()
      • handle

        public boolean handle​(io.vertx.core.http.HttpServerRequest request)
      • resourceChanged

        public void resourceChanged​(String resourceUri,
                                    io.vertx.core.buffer.Buffer resource)
      • resourceRemoved

        public void resourceRemoved​(String resourceUri)