Interface MessageEvictionStrategy

    • Method Detail

      • evictMessages

        org.apache.activemq.broker.region.MessageReference[] evictMessages​(LinkedList messages)
                                                                    throws IOException
        Find the message reference in the given list with oldest messages at the front and newer messages at the end
        Returns:
        the message that has been evicted.
        Throws:
        IOException - if an exception occurs such as reading a message content (but should not ever happen as usually all the messages will be in RAM when this method is called).