Package io.debezium.server
Class BaseChangeConsumer
- java.lang.Object
-
- io.debezium.server.BaseChangeConsumer
-
public class BaseChangeConsumer extends Object
Basic services provided to all change consumers.- Author:
- Jiri Pechanec
-
-
Field Summary
Fields Modifier and Type Field Description (package private) javax.enterprise.inject.Instance<StreamNameMapper>customStreamNameMapperprivate static org.slf4j.LoggerLOGGERprotected StreamNameMapperstreamNameMapper
-
Constructor Summary
Constructors Constructor Description BaseChangeConsumer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected byte[]getBytes(Object object)protected Map<String,Object>getConfigSubset(org.eclipse.microprofile.config.Config config, String prefix)Get a subset of the configuration properties that matches the given prefix.protected StringgetString(Object object)(package private) voidinit()protected StringunsupportedTypeMessage(Object object)
-
-
-
Field Detail
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
streamNameMapper
protected StreamNameMapper streamNameMapper
-
customStreamNameMapper
@Inject javax.enterprise.inject.Instance<StreamNameMapper> customStreamNameMapper
-
-
Method Detail
-
init
@PostConstruct void init()
-
getConfigSubset
protected Map<String,Object> getConfigSubset(org.eclipse.microprofile.config.Config config, String prefix)
Get a subset of the configuration properties that matches the given prefix.- Parameters:
config- The global configuration object to extract the subset from.prefix- The prefix to filter property names.- Returns:
- A subset of the original configuration properties containing property names without the prefix.
-
getBytes
protected byte[] getBytes(Object object)
-
-