Package com.bakdata.kafka.streams
Class StreamsCleanUpConfiguration
java.lang.Object
com.bakdata.kafka.streams.StreamsCleanUpConfiguration
- All Implemented Interfaces:
HasCleanHook<StreamsCleanUpConfiguration>
,HasTopicHooks<StreamsCleanUpConfiguration>
,AutoCloseable
public class StreamsCleanUpConfiguration
extends Object
implements HasTopicHooks<StreamsCleanUpConfiguration>, HasCleanHook<StreamsCleanUpConfiguration>, AutoCloseable
Provides configuration options for
StreamsCleanUpRunner
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.bakdata.kafka.HasTopicHooks
HasTopicHooks.TopicHook
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
registerCleanHook
(Runnable hook) Register a hook that is executed afterStreamsCleanUpRunner.clean()
has finishedregisterResetHook
(Runnable hook) Register a hook that is executed afterStreamsCleanUpRunner.reset()
has finishedRegister a hook that is executed whenever a topic has been deleted by the cleanup runner.
-
Constructor Details
-
StreamsCleanUpConfiguration
public StreamsCleanUpConfiguration()
-
-
Method Details
-
registerTopicHook
Register a hook that is executed whenever a topic has been deleted by the cleanup runner.- Specified by:
registerTopicHook
in interfaceHasTopicHooks<StreamsCleanUpConfiguration>
- Parameters:
hook
- Action to run. Topic is passed as parameter- Returns:
- self for chaining
-
registerCleanHook
Register a hook that is executed afterStreamsCleanUpRunner.clean()
has finished- Specified by:
registerCleanHook
in interfaceHasCleanHook<StreamsCleanUpConfiguration>
- Parameters:
hook
- factory to create hook from- Returns:
- self for chaining
-
registerResetHook
Register a hook that is executed afterStreamsCleanUpRunner.reset()
has finished- Parameters:
hook
- factory to create hook from- Returns:
- self for chaining
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-