class QueryStateListener implements ErrorStateListener {

  @Override
  public void onError(final QueryError error) {
    this.error = error.getType().name();
  }

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

}