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
ConstructorsConstructorDescriptionFactory
(jakarta.enterprise.inject.Instance<ProcessingStateCodec.Factory> stateCodecFactory) -
Method Summary
Modifier and TypeMethodDescriptioncreate
(KafkaConnectorIncomingConfiguration config, io.vertx.mutiny.core.Vertx vertx, KafkaConsumer<?, ?> consumer, Class<?> stateType) CreateCheckpointStateStore
instance for the given channel
-
Constructor Details
-
Factory
@Inject public Factory(@Any jakarta.enterprise.inject.Instance<ProcessingStateCodec.Factory> stateCodecFactory)
-
-
Method Details
-
create
public CheckpointStateStore create(KafkaConnectorIncomingConfiguration config, io.vertx.mutiny.core.Vertx vertx, KafkaConsumer<?, ?> consumer, Class<?> stateType) Description copied from interface:CheckpointStateStore.Factory
CreateCheckpointStateStore
instance for the given channel- Specified by:
create
in 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
-