public Enumeration enumurateQueue(){
  Vector elements=new Vector();
synchronized (LOCK) {
    Enumeration e=pending.elements();
    while (e.hasMoreElements()) {
      elements.addElement(e.nextElement());
    }
  }
  return elements.elements();
}

public Enumeration enumurateQueue ( ) { Vector elements = new Vector ( ) ; synchronized ( LOCK ) { Enumeration e = pending . elements ( ) ; while ( e . hasMoreElements ( ) ) { elements . addElement ( e . nextElement ( ) ) ; } } return elements . elements ( ) ; }
this method returns all pending connectiorequest connections .
