Class NullContextNameStrategy
java.lang.Object
io.confluent.kafka.serializers.context.NullContextNameStrategy
- All Implemented Interfaces:
ContextNameStrategy,org.apache.kafka.common.Configurable
A
NullContextNameStrategy that returns null (indicating no specific context).-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
NullContextNameStrategy
public NullContextNameStrategy()
-
-
Method Details
-
configure
- Specified by:
configurein interfaceorg.apache.kafka.common.Configurable- Specified by:
configurein interfaceContextNameStrategy
-
contextName
For a given topic, returns the context name to use.- Specified by:
contextNamein interfaceContextNameStrategy- Parameters:
topic- The Kafka topic name.- Returns:
- The context name to use
-