class MetricsListener implements TableReplicationListener, CopierListener {

  @Override
  public void tableReplicationFailure(EventTableReplication tableReplication, String eventId, Throwable t) {
    sendMetrics(CompletionCode.FAILURE, tableReplication.getQualifiedReplicaName(), Metrics.NULL_VALUE);
  }

  @Autowired  MetricsListener(
      MetricSender metricSender,
      ScheduledReporterFactory runningMetricsReporterFactory,
      @Value("${metrics-reporter.period:1}") long metricsReporterPeriod,
      @Value("${metrics-reporter.time-unit:MINUTES}") TimeUnit metricsReporterTimeUnit);

}