code: private void shift()
      {
          int currentPos = 1; // Asterisk starts at 1
  
          synchronized (entries)
          {
              for (AsteriskQueueEntryImpl qe : entries)
              {
                  // Only set (and fire PCE on qe) if necessary
                  if (qe.getPosition() != currentPos)
                  {
                      qe.setPosition(currentPos);
                  }
                  currentPos++;
              }
          }
      }
docs: Shifts the position of the queue entries if needed
  (and fire PCE on queue entries if appropriate).