Package io.confluent.license.kafka
Interface BrokerDetector
public interface BrokerDetector
Interface for detecting Kafka broker type.
-
Method Summary
Modifier and TypeMethodDescriptionstatic BrokerDetectorcreate()Creates a new instance of the BrokerDetector.determineBrokerType(Map<String, Object> consumerProperties) Detects the type of broker based on the provided configuration.determineBrokerType(Properties consumerProperties) Detects the type of broker based on the provided configuration.
-
Method Details
-
create
Creates a new instance of the BrokerDetector.- Returns:
- a new BrokerDetector instance
-
determineBrokerType
Detects the type of broker based on the provided configuration.- Parameters:
consumerProperties- Kafka consumer configurationPropertiesfor connecting to the Kafka cluster- Returns:
- the detected broker type
- Throws:
BrokerDetectionException- if there's an error during detection
-
determineBrokerType
BrokerType determineBrokerType(Map<String, Object> consumerProperties) throws BrokerDetectionExceptionDetects the type of broker based on the provided configuration.- Parameters:
consumerProperties- Kafka consumer configurationMapfor connecting to the Kafka cluster- Returns:
- the detected broker type
- Throws:
BrokerDetectionException- if there's an error during detection
-