Interface DelayingQueue<T>

All Superinterfaces:
WorkQueue<T>
All Known Subinterfaces:
RateLimitingQueue<T>
All Known Implementing Classes:
DefaultDelayingQueue, DefaultRateLimitingQueue

public interface DelayingQueue<T> extends WorkQueue<T>
DelayingQueue defines a queue that can Add an item at a later time. This makes it easier to requeue items after failures without ending up in a hot-loop.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addAfter(T item, Duration duration)
    addAfter adds an item to the workqueue after the indicated duration has passed.

    Methods inherited from interface io.kubernetes.client.extended.workqueue.WorkQueue

    add, done, get, isShuttingDown, length, shutDown
  • Method Details

    • addAfter

      void addAfter(T item, Duration duration)
      addAfter adds an item to the workqueue after the indicated duration has passed.
      Parameters:
      item - item to add
      duration - specific duration