void checkQueueSizeConstraint() throws InterruptedException {
  if (Thread.interrupted())   throw new InterruptedException();
}

void checkQueueSizeConstraint ( ) throws InterruptedException { if ( Thread . interrupted ( ) ) throw new InterruptedException ( ) ; }
implementation in blokcingharegionqueue class
