public int getAvailableCacheSize() {
    return (totalConnections - activeConnections);
  }
Returns number of connections available for use

@return Size of available cache.
geode-core/src/main/java/org/apache/geode/internal/datasource/AbstractPoolCache.java