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.TopicHookcreateTopicHook(AppConfiguration<?> configuration) Create a hook that cleans up LargeMessage files associated with a topic.static HasTopicHooks.TopicHookcreateTopicHook(Map<String, Object> kafkaProperties) Create a hook that cleans up LargeMessage files associated with a topic.static <T> TregisterTopicHook(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 aAbstractLargeMessageConfigare 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 aAbstractLargeMessageConfigare 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:
-