CostEstimator
Protocol for records that can estimate their own processing cost.
Methods
estimate_cost()
@classmethod
def estimate_cost() -> int
Estimates the processing cost of the record, used automatically by the batcher when no explicit cost is provided.
Returns
| Type | Description |
|---|---|
int | The estimated processing cost of the record. |