Class UniquePropertyMessageEvictionStrategy

    • Field Detail

      • propertyName

        protected String propertyName
    • Constructor Detail

      • UniquePropertyMessageEvictionStrategy

        public UniquePropertyMessageEvictionStrategy()
    • Method Detail

      • getPropertyName

        public String getPropertyName()
      • setPropertyName

        public void setPropertyName​(String propertyName)
      • evictMessages

        public MessageReference[] evictMessages​(LinkedList messages)
                                         throws IOException
        Description copied from interface: MessageEvictionStrategy
        Find the message reference in the given list with oldest messages at the front and newer messages at the end
        the message that has been evicted.
        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).