Class DebeziumResource


  • @Path("/debezium")
    @Produces("application/json")
    @Consumes("application/json")
    public class DebeziumResource
    extends Object
    A JAX-RS Resource class defining endpoints that enable some advanced features over Kafka Connect's REST interface: + report available transformations and their configuration + return if topic auto-creation is available and enabled
    • Field Detail

      • LOGGER

        private static final org.slf4j.Logger LOGGER
      • REQUEST_TIMEOUT_MS

        public static final Duration REQUEST_TIMEOUT_MS
      • requestTimeoutMs

        private static Duration requestTimeoutMs
      • isTopicCreationEnabled

        private final Boolean isTopicCreationEnabled
      • herder

        private final org.apache.kafka.connect.runtime.Herder herder
      • config

        private final Map<String,​?> config
      • VERSION_PATTERN

        private static final Pattern VERSION_PATTERN
      • TOPIC_CREATION_KAFKA_VERSION

        private static final Runtime.Version TOPIC_CREATION_KAFKA_VERSION
      • context

        @Context
        private javax.servlet.ServletContext context
    • Constructor Detail

      • DebeziumResource

        public DebeziumResource​(org.apache.kafka.connect.health.ConnectClusterState clusterState,
                                Map<String,​?> config)
    • Method Detail

      • setRequestTimeout

        public static void setRequestTimeout​(long requestTimeoutMs)
      • resetRequestTimeout

        public static void resetRequestTimeout()
      • getTopicCreationEnabled

        @GET
        @Path("/topic-creation")
        public boolean getTopicCreationEnabled()
      • isTopicCreationEnabled

        private Boolean isTopicCreationEnabled()