Class StreamConsumerRegistrarUtil


  • @Internal
    public class StreamConsumerRegistrarUtil
    extends Object
    A utility class that creates instances of StreamConsumerRegistrar and handles batch operations.
    • Constructor Detail

      • StreamConsumerRegistrarUtil

        public StreamConsumerRegistrarUtil()
    • Method Detail

      • eagerlyRegisterStreamConsumers

        public static void eagerlyRegisterStreamConsumers​(Properties configProps,
                                                          List<String> streams)
        Registers stream consumers for the given streams if EFO is enabled with EAGER registration strategy.
        Parameters:
        configProps - the properties to parse configuration from
        streams - the stream to register consumers against
      • lazilyRegisterStreamConsumers

        public static void lazilyRegisterStreamConsumers​(Properties configProps,
                                                         List<String> streams)
        Registers stream consumers for the given streams if EFO is enabled with LAZY registration strategy.
        Parameters:
        configProps - the properties to parse configuration from
        streams - the stream to register consumers against
      • deregisterStreamConsumers

        public static void deregisterStreamConsumers​(Properties configProps,
                                                     List<String> streams)
        Deregisters stream consumers for the given streams if EFO is enabled with EAGER|LAZY registration strategy.
        Parameters:
        configProps - the properties to parse configuration from
        streams - the stream to register consumers against