AsteriskQueueEntryImpl getEntry(int position)
    {
        // positions in asterisk start at 1, but list starts at 0
        position--;
        AsteriskQueueEntryImpl foundEntry = null;
        synchronized (entries)
        {
            try
            {
                foundEntry = entries.get(position);
            }
            catch (IndexOutOfBoundsException e)
            {
                // For consistency with the above method,
                // swallow. We might indeed request the 1st one from time to time
            } // NOPMD
        }
        return foundEntry;
    }
AsteriskQueueEntryImpl getEntry ( int position ) { position -- ; AsteriskQueueEntryImpl foundEntry = null ; synchronized ( entries ) { try { foundEntry = entries . get ( position ) ; } catch ( IndexOutOfBoundsException e ) { } } return foundEntry ; }
Gets an entry by its (estimated) position in the queue.

@param position the position, starting at 1.
@return the queue entry if exiting at this position, null otherwise.