synchronized boolean release(){
  d("release()");
  if (state == BUSY) {
    state=IDLE;
    idleSince=System.currentTimeMillis();
    return true;
  }
 else {
    return false;
  }
}

synchronized boolean release ( ) { d ( "release()" ) ; if ( state == BUSY ) { state = IDLE ; idleSince = System . currentTimeMillis ( ) ; return true ; } else { return false ; } }
changes the state of a connectiondesc from busy to idle and records the current time so that we will know how long it has been idle .
