library/src/main/java/com/kdgregory/aws/utils/cloudwatch/CloudWatchLogsWriter.java
/**
     *  Pulls all messages out of the queue, sorts them, and converts them
     *  to <code>InputLogEvent</code>s.
     */
Pulls all messages out of the queue, sorts them, and converts them
to InputLogEvents.
Pulls all messages out of the queue sorts them and converts them to InputLogEvents .
private LinkedList<QueuedMessage> extractAndSortMessages()
    {
        LinkedList<QueuedMessage> messages = new LinkedList<QueuedMessage>();
        for (Iterator<QueuedMessage> unsentItx = unsentMessages.iterator() ; unsentItx.hasNext() ; )
        {
            messages.add(unsentItx.next());
            unsentItx.remove();
        }
        Collections.sort(messages, new MessageComparator());
        return messages;
    }
private LinkedList < QueuedMessage > extractAndSortMessages ( ) { LinkedList < QueuedMessage > messages = new LinkedList < QueuedMessage > ( ) ; for ( Iterator < QueuedMessage > unsentItx = unsentMessages . iterator ( ) ; unsentItx . hasNext ( ) ; ) { messages . add ( unsentItx . next ( ) ) ; unsentItx . remove ( ) ; } Collections . sort ( messages , new MessageComparator ( ) ) ; return messages ; }
Pulls all messages out of the queue, sorts them, and converts them
  to <code>InputLogEvent</code>s.
Pulls all messages out of the queue sorts them and converts them to <code > InputLogEvent< / code > s .