Class PriorityURLBuffer

  • All Implemented Interfaces:
    URLBuffer

    public class PriorityURLBuffer
    extends SimpleURLBuffer
    Determines the priority of the buffers based on the number of URLs acked in a configurable period of time.
    Since:
    1.16
    • Constructor Detail

      • PriorityURLBuffer

        public PriorityURLBuffer()
    • Method Detail

      • next

        public org.apache.storm.tuple.Values next()
        Description copied from class: SimpleURLBuffer
        Retrieves the next available URL, guarantees that the URLs are always perfectly shuffled
        Specified by:
        next in interface URLBuffer
        Overrides:
        next in class SimpleURLBuffer
        Returns:
        null if no entries are available
      • acked

        public void acked​(String url)
        Description copied from interface: URLBuffer
        Notify the buffer that a URL has been successfully processed used e.g to compute an ideal delay for a host queue