@Override
      protected void chore() {
        for (Map.Entry<String, ConnectionInfo> entry : connections.entrySet()) {
          ConnectionInfo connInfo = entry.getValue();
          if (connInfo.timedOut(maxIdleTime)) {
            if (connInfo.admin != null) {
              try {
                connInfo.admin.close();
              } catch (Throwable t) {
                LOG.info("Got exception in closing idle admin", t);
              }
            }
            try {
              connInfo.connection.close();
            } catch (Throwable t) {
              LOG.info("Got exception in closing idle connection", t);
            }
          }
        }
      }
A utility to store user specific HConnections in memory. There is a chore to clean up connections
idle for too long. This class is used by REST server and Thrift server to support authentication
and impersonation.
hbase-server/src/main/java/org/apache/hadoop/hbase/util/ConnectionCache.java