@Internal public class ActionFactory extends java.lang.Object implements java.io.Serializable
Constructor and Description |
---|
ActionFactory() |
Modifier and Type | Method and Description |
---|---|
ChangeStreamAction |
changeStreamAction(ChangeStreamMetrics metrics)
Creates and returns a singleton instance of an action class for processing individual
ChangeStreamMutation in
ReadChangeStreamPartitionDoFn . |
DetectNewPartitionsAction |
detectNewPartitionsAction(ChangeStreamMetrics metrics,
MetadataTableDao metadataTableDao,
Instant endTime,
GenerateInitialPartitionsAction generateInitialPartitionsAction,
ResumeFromPreviousPipelineAction resumeFromPreviousPipelineAction,
ProcessNewPartitionsAction processNewPartitionsAction)
Creates and returns a singleton instance of an action class for processing
DetectNewPartitionsDoFn . |
GenerateInitialPartitionsAction |
generateInitialPartitionsAction(ChangeStreamMetrics metrics,
ChangeStreamDao changeStreamDao,
Instant endTime)
Creates and returns a singleton instance of an action class for processing
DetectNewPartitionsDoFn |
ProcessNewPartitionsAction |
processNewPartitionsAction(ChangeStreamMetrics metrics,
MetadataTableDao metadataTableDao,
Instant endTime) |
ReadChangeStreamPartitionAction |
readChangeStreamPartitionAction(MetadataTableDao metadataTableDao,
ChangeStreamDao changeStreamDao,
ChangeStreamMetrics metrics,
ChangeStreamAction changeStreamAction,
Duration heartbeatDuration,
SizeEstimator<KV<com.google.protobuf.ByteString,com.google.cloud.bigtable.data.v2.models.ChangeStreamRecord>> sizeEstimator)
Creates and returns a singleton instance of an action class for processing
ReadChangeStreamPartitionDoFn . |
ResumeFromPreviousPipelineAction |
resumeFromPreviousPipelineAction(ChangeStreamMetrics metrics,
MetadataTableDao metadataTableDao,
Instant endTime,
ProcessNewPartitionsAction processNewPartitionsAction) |
public ChangeStreamAction changeStreamAction(ChangeStreamMetrics metrics)
ReadChangeStreamPartitionDoFn
.
This method is thread safe.
ChangeStreamAction
public DetectNewPartitionsAction detectNewPartitionsAction(ChangeStreamMetrics metrics, MetadataTableDao metadataTableDao, @Nullable Instant endTime, GenerateInitialPartitionsAction generateInitialPartitionsAction, ResumeFromPreviousPipelineAction resumeFromPreviousPipelineAction, ProcessNewPartitionsAction processNewPartitionsAction)
DetectNewPartitionsDoFn
.
This method is thread safe.
DetectNewPartitionsAction
public ProcessNewPartitionsAction processNewPartitionsAction(ChangeStreamMetrics metrics, MetadataTableDao metadataTableDao, @Nullable Instant endTime)
public GenerateInitialPartitionsAction generateInitialPartitionsAction(ChangeStreamMetrics metrics, ChangeStreamDao changeStreamDao, @Nullable Instant endTime)
DetectNewPartitionsDoFn
This method is thread safe.
GenerateInitialPartitionsAction
public ResumeFromPreviousPipelineAction resumeFromPreviousPipelineAction(ChangeStreamMetrics metrics, MetadataTableDao metadataTableDao, @Nullable Instant endTime, ProcessNewPartitionsAction processNewPartitionsAction)
public ReadChangeStreamPartitionAction readChangeStreamPartitionAction(MetadataTableDao metadataTableDao, ChangeStreamDao changeStreamDao, ChangeStreamMetrics metrics, ChangeStreamAction changeStreamAction, Duration heartbeatDuration, SizeEstimator<KV<com.google.protobuf.ByteString,com.google.cloud.bigtable.data.v2.models.ChangeStreamRecord>> sizeEstimator)
ReadChangeStreamPartitionDoFn
.
This method is thread safe.
ReadChangeStreamPartitionAction