Package com.bakdata.kafka
Class LargeMessageAppUtils
java.lang.Object
com.bakdata.kafka.LargeMessageAppUtils
Utility class that provides helpers for cleaning
LargeMessageSerde
artifacts-
Method Summary
Modifier and TypeMethodDescriptionstatic HasTopicHooks.TopicHook
createTopicHook
(AppConfiguration<?> configuration) Create a hook that cleans up LargeMessage files associated with a topic.static HasTopicHooks.TopicHook
createTopicHook
(Map<String, Object> kafkaProperties) Create a hook that cleans up LargeMessage files associated with a topic.static <T> T
registerTopicHook
(HasTopicHooks<T> cleanUpConfiguration, AppConfiguration<?> configuration) Register a hook that cleans up LargeMessage files associated with a topic
-
Method Details
-
createTopicHook
Create a hook that cleans up LargeMessage files associated with a topic. It is expected that all necessary properties to create aAbstractLargeMessageConfig
are part ofkafkaProperties
.- Parameters:
kafkaProperties
- Kafka properties to create hook from- Returns:
- hook that cleans up LargeMessage files associated with a topic
- See Also:
-
createTopicHook
Create a hook that cleans up LargeMessage files associated with a topic. It is expected that all necessary properties to create aAbstractLargeMessageConfig
are part ofAppConfiguration.getKafkaProperties()
.- Parameters:
configuration
- Configuration to create hook from- Returns:
- hook that cleans up LargeMessage files associated with a topic
- See Also:
-
registerTopicHook
public static <T> T registerTopicHook(HasTopicHooks<T> cleanUpConfiguration, AppConfiguration<?> configuration) Register a hook that cleans up LargeMessage files associated with a topic- Type Parameters:
T
- type of configuration- Parameters:
cleanUpConfiguration
- Configuration to register hook onconfiguration
- Configuration to create hook from- Returns:
- Configuration with registered topic hook
- See Also:
-