@Override
  public void detach() {
    attachCount.getAndDecrement();
  }
This needs to be called when a service (like a Region or CQService) stops using a pool.

@since GemFire 5.7
geode-core/src/main/java/org/apache/geode/cache/client/internal/PoolImpl.java