Class DestinationMetrics.Counters
java.lang.Object
io.github.flink.gcp.connector.base.metrics.DestinationMetrics.Counters
- Enclosing class:
- DestinationMetrics
One destination's counters; a no-op instance when per-destination metrics are off.
-
Method Summary
Modifier and TypeMethodDescriptionvoidCounts one record handed to the client library for this destination.voidrecordsSent(long count) Counts the records of one request handed to the client library for this destination — the batching connectors' form ofrecordSent(), which is the same counter.voidCounts one record routed to the failure handler for this destination.
-
Method Details
-
recordSent
public void recordSent()Counts one record handed to the client library for this destination. -
recordsSent
public void recordsSent(long count) Counts the records of one request handed to the client library for this destination — the batching connectors' form ofrecordSent(), which is the same counter.- Parameters:
count- the number of records the request carries
-
sendFailed
public void sendFailed()Counts one record routed to the failure handler for this destination.
-