public boolean hasIdleExpired(long now, long timeoutNanos) {
    synchronized (this) {
      if (isActive()) {
        return false;
      } else {
        return remainingIdle(now, timeoutNanos) <= 0;
      }
    }
  }
Return true if the connection has been idle long enough to expire.
geode-core/src/main/java/org/apache/geode/cache/client/internal/pooling/PooledConnection.java