Class FileCheckpointStateStore.Factory
- java.lang.Object
-
- io.smallrye.reactive.messaging.kafka.commit.FileCheckpointStateStore.Factory
-
- All Implemented Interfaces:
CheckpointStateStore.Factory
- Enclosing class:
- FileCheckpointStateStore
@ApplicationScoped @Identifier("file") public static class FileCheckpointStateStore.Factory extends Object implements CheckpointStateStore.Factory
-
-
Constructor Summary
Constructors Constructor Description Factory(jakarta.enterprise.inject.Instance<ProcessingStateCodec.Factory> stateCodecFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CheckpointStateStorecreate(KafkaConnectorIncomingConfiguration config, io.vertx.mutiny.core.Vertx vertx, KafkaConsumer<?,?> consumer, Class<?> stateType)CreateCheckpointStateStoreinstance for the given channel
-
-
-
Constructor Detail
-
Factory
@Inject public Factory(@Any jakarta.enterprise.inject.Instance<ProcessingStateCodec.Factory> stateCodecFactory)
-
-
Method Detail
-
create
public CheckpointStateStore create(KafkaConnectorIncomingConfiguration config, io.vertx.mutiny.core.Vertx vertx, KafkaConsumer<?,?> consumer, Class<?> stateType)
Description copied from interface:CheckpointStateStore.FactoryCreateCheckpointStateStoreinstance for the given channel- Specified by:
createin interfaceCheckpointStateStore.Factory- Parameters:
config- the channel configvertx- the vert.x instanceconsumer- the Kafka consumerstateType- the type of the persisted state, can be null- Returns:
- the created state store instance
-
-