public void remove(int size) throws CacheException {
  for (int i=0; i < size; i++) {
    remove();
  }
  if (logger.isTraceEnabled()) {
    logger.trace("{}: Removed a batch of {} entries",this,size);
  }
}

public void remove ( int size ) throws CacheException { for ( int i = 0 ; i < size ; i ++ ) { remove ( ) ; } if ( logger . isTraceEnabled ( ) ) { logger . trace ( "{}: Removed a batch of {} entries" , this , size ) ; } }
this method removes batchsize entries from the queue . it will only remove entries that were previously peeked .
