@Override
  public void onConfigurationChange(Configuration conf) {
    for (StreamSlowMonitor monitor : streamSlowMonitors.values()) {
      monitor.onConfigurationChange(conf);
    }
    this.excludeDNsCache = CacheBuilder.newBuilder()
      .expireAfterWrite(
        this.conf.getLong(WAL_EXCLUDE_DATANODE_TTL_KEY, DEFAULT_WAL_EXCLUDE_DATANODE_TTL),
        TimeUnit.HOURS)
      .maximumSize(this.conf.getInt(WAL_MAX_EXCLUDE_SLOW_DATANODE_COUNT_KEY,
        DEFAULT_WAL_MAX_EXCLUDE_SLOW_DATANODE_COUNT))
      .build();
  }
Try to add a datanode to the regionserver excluding cache
@param datanodeInfo the datanode to be added to the excluded cache
@param cause        the cause that the datanode is hope to be excluded
@return True if the datanode is added to the regionserver excluding cache, false otherwise
hbase-asyncfs/src/main/java/org/apache/hadoop/hbase/io/asyncfs/monitor/ExcludeDatanodeManager.java