class QueryStateListener implements ErrorStateListener {

  public void close() {
    metrics.removeMetric(stateMetricName);
    metrics.removeMetric(errorMetricName);
  }

    QueryStateListener(
      final Metrics metrics,
      final String groupPrefix,
      final String queryApplicationId
  );
    QueryStateListener(
      final Metrics metrics,
      final String groupPrefix,
      final String queryApplicationId,
      final Ticker ticker
  );

}