public class ActionFactory
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
ActionFactory() |
Modifier and Type | Method and Description |
---|---|
ChildPartitionsRecordAction |
childPartitionsRecordAction(PartitionMetadataDao partitionMetadataDao,
ChangeStreamMetrics metrics)
Creates and returns a singleton instance of an action class capable of process
ChildPartitionsRecord s. |
DataChangeRecordAction |
dataChangeRecordAction(ThroughputEstimator<DataChangeRecord> throughputEstimator)
Creates and returns a singleton instance of an action class capable of processing
DataChangeRecord s. |
DetectNewPartitionsAction |
detectNewPartitionsAction(PartitionMetadataDao partitionMetadataDao,
PartitionMetadataMapper partitionMetadataMapper,
ChangeStreamMetrics metrics,
Duration resumeDuration)
Creates and returns a single instance of an action class capable of detecting and scheduling
new partitions to be queried.
|
HeartbeatRecordAction |
heartbeatRecordAction(ChangeStreamMetrics metrics)
Creates and returns a singleton instance of an action class capable of processing
HeartbeatRecord s. |
QueryChangeStreamAction |
queryChangeStreamAction(ChangeStreamDao changeStreamDao,
PartitionMetadataDao partitionMetadataDao,
ChangeStreamRecordMapper changeStreamRecordMapper,
PartitionMetadataMapper partitionMetadataMapper,
DataChangeRecordAction dataChangeRecordAction,
HeartbeatRecordAction heartbeatRecordAction,
ChildPartitionsRecordAction childPartitionsRecordAction,
ChangeStreamMetrics metrics)
Creates and returns a single instance of an action class capable of performing a change stream
query for a given partition.
|
public DataChangeRecordAction dataChangeRecordAction(ThroughputEstimator<DataChangeRecord> throughputEstimator)
DataChangeRecord
s.
This method is thread safe.
DataChangeRecordAction
public HeartbeatRecordAction heartbeatRecordAction(ChangeStreamMetrics metrics)
HeartbeatRecord
s. This method is thread
safe.metrics
- metrics gathering classHeartbeatRecordAction
public ChildPartitionsRecordAction childPartitionsRecordAction(PartitionMetadataDao partitionMetadataDao, ChangeStreamMetrics metrics)
ChildPartitionsRecord
s. This method is
thread safe.partitionMetadataDao
- DAO class to access the Connector's metadata tablesmetrics
- metrics gathering classChildPartitionsRecordAction
public QueryChangeStreamAction queryChangeStreamAction(ChangeStreamDao changeStreamDao, PartitionMetadataDao partitionMetadataDao, ChangeStreamRecordMapper changeStreamRecordMapper, PartitionMetadataMapper partitionMetadataMapper, DataChangeRecordAction dataChangeRecordAction, HeartbeatRecordAction heartbeatRecordAction, ChildPartitionsRecordAction childPartitionsRecordAction, ChangeStreamMetrics metrics)
DataChangeRecordAction
, HeartbeatRecordAction
and ChildPartitionsRecordAction
to dispatch the necessary
processing depending on the type of record received.changeStreamDao
- DAO class to perform a change stream querypartitionMetadataDao
- DAO class to access the Connector's metadata tableschangeStreamRecordMapper
- mapper class to transform change stream records into the
Connector's domain modelspartitionMetadataMapper
- mapper class to transform partition metadata rows into the
Connector's domain modelsdataChangeRecordAction
- action class to process DataChangeRecord
sheartbeatRecordAction
- action class to process HeartbeatRecord
schildPartitionsRecordAction
- action class to process ChildPartitionsRecord
smetrics
- metrics gathering classQueryChangeStreamAction
public DetectNewPartitionsAction detectNewPartitionsAction(PartitionMetadataDao partitionMetadataDao, PartitionMetadataMapper partitionMetadataMapper, ChangeStreamMetrics metrics, Duration resumeDuration)
partitionMetadataDao
- DAO class to access the Connector's metadata tablespartitionMetadataMapper
- mapper class to transform partition metadata table rows into the
Connector's domain modelsmetrics
- metrics gathering classresumeDuration
- specifies the periodic schedule to re-execute the actionDetectNewPartitionsAction