iterator

Returns an iterator over the pending Messages. The subclass controls how
the returned iterator actually traverses the list of pending messages allowing
for the order to vary based on factors like Message priority or some other
mechanism.