Class StreamConsumerRegistrarUtil
- java.lang.Object
-
- org.apache.flink.streaming.connectors.kinesis.util.StreamConsumerRegistrarUtil
-
@Internal public class StreamConsumerRegistrarUtil extends Object
A utility class that creates instances ofStreamConsumerRegistrarand handles batch operations.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStreamConsumerRegistrarUtil.FlinkKinesisStreamConsumerRegistrarExceptionA semanticRuntimeExceptionthrown to indicate errors de-/registering stream consumers.
-
Constructor Summary
Constructors Constructor Description StreamConsumerRegistrarUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidderegisterStreamConsumers(Properties configProps, List<String> streams)Deregisters stream consumers for the given streams if EFO is enabled with EAGER|LAZY registration strategy.static voideagerlyRegisterStreamConsumers(Properties configProps, List<String> streams)Registers stream consumers for the given streams if EFO is enabled with EAGER registration strategy.static voidlazilyRegisterStreamConsumers(Properties configProps, List<String> streams)Registers stream consumers for the given streams if EFO is enabled with LAZY registration strategy.
-
-
-
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 fromstreams- 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 fromstreams- 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 fromstreams- the stream to register consumers against
-
-