public synchronized int availableSize(){
  int ret=0;
  if (!destroyed) {
    int count=0;
    for (int i=0; i < connections.size(); i++) {
      XPooledConnection xpc=(XPooledConnection)connections.get(i);
      if (xpc.isAvailable())       count++;
    }
    ret=count;
  }
  return ret;
}

public synchronized int availableSize ( ) { int ret = 0 ; if ( ! destroyed ) { int count = 0 ; for ( int i = 0 ; i < connections . size ( ) ; i ++ ) { XPooledConnection xpc = ( XPooledConnection ) connections . get ( i ) ; if ( xpc . isAvailable ( ) ) count ++ ; } ret = count ; } return ret ; }
the amount of pooled connections in state available .
