public void throttle(){
  if (currentCommandStart == 0) {
    currentCommandStart=System.currentTimeMillis();
  }
  if (throttle == 0) {
    return;
  }
  long time=System.currentTimeMillis();
  if (lastThrottle + Constants.THROTTLE_DELAY > time) {
    return;
  }
  lastThrottle=time + throttle;
  try {
    Thread.sleep(throttle);
  }
 catch (  Exception e) {
  }
}

public void throttle ( ) { if ( currentCommandStart == 0 ) { currentCommandStart = System . currentTimeMillis ( ) ; } if ( throttle == 0 ) { return ; } long time = System . currentTimeMillis ( ) ; if ( lastThrottle + Constants . THROTTLE_DELAY > time ) { return ; } lastThrottle = time + throttle ; try { Thread . sleep ( throttle ) ; } catch ( Exception e ) { } }
wait for some time if this session is throttled ( slowed down ) .
