public void clearRecycle(){
  ArrayList<ClientSocket> recycleList=null;
synchronized (this) {
    _idleHead=_idleTail=0;
    for (int i=0; i < _idle.length; i++) {
      ClientSocket stream;
      stream=_idle[i];
      _idle[i]=null;
      if (stream != null) {
        if (recycleList == null)         recycleList=new ArrayList<ClientSocket>();
        recycleList.add(stream);
      }
    }
  }
  if (recycleList != null) {
    for (    ClientSocket stream : recycleList) {
      stream.closeImpl();
    }
  }
}

public void clearRecycle ( ) { ArrayList < ClientSocket > recycleList = null ; synchronized ( this ) { _idleHead = _idleTail = 0 ; for ( int i = 0 ; i < _idle . length ; i ++ ) { ClientSocket stream ; stream = _idle [ i ] ; _idle [ i ] = null ; if ( stream != null ) { if ( recycleList == null ) recycleList = new ArrayList < ClientSocket > ( ) ; recycleList . add ( stream ) ; } } } if ( recycleList != null ) { for ( ClientSocket stream : recycleList ) { stream . closeImpl ( ) ; } } }
clears the recycled connections , e . g . on detection of backend server going down .
