protected void stopSpin(){
  if (spinning) {
    try {
      spinLimiter.acquire();
    }
 catch (    InterruptedException e) {
      throw new ActiveMQInterruptedException(e);
    }
    spinning=false;
  }
}

protected void stopSpin ( ) { if ( spinning ) { try { spinLimiter . acquire ( ) ; } catch ( InterruptedException e ) { throw new ActiveMQInterruptedException ( e ) ; } spinning = false ; } }
sub classes ( tests basically ) can use this to override disabling spinning
