Class DelegatingByTopicSerialization<T extends Closeable>
java.lang.Object
org.springframework.kafka.support.serializer.DelegatingByTopicSerialization<T>
- Type Parameters:
- T- the type.
- All Implemented Interfaces:
- Closeable,- AutoCloseable
- Direct Known Subclasses:
- DelegatingByTopicDeserializer,- DelegatingByTopicSerializer
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringSet to false to make topic pattern matching case-insensitive.static final StringName of the configuration property containing the serialization topic pattern map for keys with formatpattern:class,....static final StringName of the default delegate for keys when no topic name match is fount.static final StringName of the configuration property containing the serialization selector map for values with formatselector:class,....static final StringName of the default delegate for keys when no topic name match is fount.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddDelegate(Pattern pattern, T serializer) protected voidprotected voidbuildDefault(Map<String, ?> configs, String configKey, boolean isKey, Object delegate) voidclose()protected voidprotected abstract TconfigureDelegate(Map<String, ?> configs, boolean isKey, T delegate) Configure the delegate.protected TfindDelegate(String topic) Determine the delegate for the topic.protected TinstantiateAndConfigure(Map<String, ?> configs, boolean isKey, Map<Pattern, T> delegates2, Pattern pattern, Class<?> clazz) protected abstract booleanisInstance(Object delegate) Return true if this object is an instance of T.removeDelegate(Pattern pattern) voidsetCaseSensitive(boolean caseSensitive) Set to false to make topic name matching case insensitive.
- 
Field Details- 
VALUE_SERIALIZATION_TOPIC_CONFIGName of the configuration property containing the serialization selector map for values with formatselector:class,....- See Also:
 
- 
KEY_SERIALIZATION_TOPIC_CONFIGName of the configuration property containing the serialization topic pattern map for keys with formatpattern:class,....- See Also:
 
- 
VALUE_SERIALIZATION_TOPIC_DEFAULTName of the default delegate for keys when no topic name match is fount.- See Also:
 
- 
KEY_SERIALIZATION_TOPIC_DEFAULTName of the default delegate for keys when no topic name match is fount.- See Also:
 
- 
CASE_SENSITIVESet to false to make topic pattern matching case-insensitive.- See Also:
 
 
- 
- 
Constructor Details- 
DelegatingByTopicSerializationpublic DelegatingByTopicSerialization()
- 
DelegatingByTopicSerialization
 
- 
- 
Method Details- 
setCaseSensitivepublic void setCaseSensitive(boolean caseSensitive) Set to false to make topic name matching case insensitive.- Parameters:
- caseSensitive- false for case insensitive.
 
- 
configure
- 
build
- 
buildDefault
- 
configureDelegate
- 
isInstanceReturn true if this object is an instance of T.- Parameters:
- delegate- the delegate.
- Returns:
- true if a T.
 
- 
instantiateAndConfigure
- 
addDelegate
- 
removeDelegate
- 
findDelegate
- 
closepublic void close()- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
 
 
-