public class PartitionRestrictionProgressChecker
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| protected java.util.function.Supplier<com.google.cloud.Timestamp> | timeSupplier | 
| Constructor and Description | 
|---|
| PartitionRestrictionProgressChecker()Indicates how many mode transitions have been completed for the current mode. | 
| Modifier and Type | Method and Description | 
|---|---|
| RestrictionTracker.Progress | getProgress(PartitionRestriction restriction,
           @Nullable PartitionPosition lastClaimedPosition) | 
| void | setTimeSupplier(java.util.function.Supplier<com.google.cloud.Timestamp> timeSupplier) | 
protected java.util.function.Supplier<com.google.cloud.Timestamp> timeSupplier
public PartitionRestrictionProgressChecker()
This is used to calculate the units of work left, meaning that 1 transition = 1 unit of work.
public void setTimeSupplier(java.util.function.Supplier<com.google.cloud.Timestamp> timeSupplier)
public RestrictionTracker.Progress getProgress(PartitionRestriction restriction, @Nullable PartitionPosition lastClaimedPosition)