Package io.debezium.snapshot
Class SnapshotterServiceProvider
java.lang.Object
io.debezium.snapshot.SnapshotterServiceProvider
- All Implemented Interfaces:
ServiceProvider<SnapshotterService>
public class SnapshotterServiceProvider
extends Object
implements ServiceProvider<SnapshotterService>
An implementation of the
ServiceProvider contract for the SnapshotterService.- Author:
- Mario Fiore Vitale
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateService(Configuration configuration, ServiceRegistry serviceRegistry) Creates or provides a desired service.Get the service class that should be initiated or provided.private static SnapshotterServicegetSnapshotterService(Configuration configuration, Snapshotter snapshotter, BeanRegistry beanRegistry, SnapshotQuery snapshotQueryService, SnapshotLock snapshotLockService) snapshotMode(CommonConnectorConfig configuration)
-
Constructor Details
-
SnapshotterServiceProvider
public SnapshotterServiceProvider()
-
-
Method Details
-
createService
public SnapshotterService createService(Configuration configuration, ServiceRegistry serviceRegistry) Description copied from interface:ServiceProviderCreates or provides a desired service.- Specified by:
createServicein interfaceServiceProvider<SnapshotterService>- Parameters:
configuration- the connector configurationserviceRegistry- the service registry- Returns:
- the constructed service
-
getSnapshotterService
private static SnapshotterService getSnapshotterService(Configuration configuration, Snapshotter snapshotter, BeanRegistry beanRegistry, SnapshotQuery snapshotQueryService, SnapshotLock snapshotLockService) -
getServiceClass
Description copied from interface:ServiceProviderGet the service class that should be initiated or provided. The service class should be unique in the registry.- Specified by:
getServiceClassin interfaceServiceProvider<SnapshotterService>- Returns:
- the service class
-
snapshotMode
-