Class BaseChangeConsumer


  • public class BaseChangeConsumer
    extends Object
    Basic services provided to all change consumers.
    Author:
    Jiri Pechanec
    • Field Detail

      • LOGGER

        private static final org.slf4j.Logger LOGGER
      • customStreamNameMapper

        @Inject
        javax.enterprise.inject.Instance<StreamNameMapper> customStreamNameMapper
    • Constructor Detail

      • BaseChangeConsumer

        public BaseChangeConsumer()
    • Method Detail

      • 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)
      • unsupportedTypeMessage

        protected String unsupportedTypeMessage​(Object object)