public class DefaultDelayingQueue<T> extends DefaultWorkQueue<T> implements DelayingQueue<T>
| Modifier and Type | Field and Description |
|---|---|
static Duration |
heartBeatInterval |
protected BlockingQueue<io.kubernetes.client.extended.workqueue.DefaultDelayingQueue.WaitForEntry<T>> |
waitingForAddQueue |
| Constructor and Description |
|---|
DefaultDelayingQueue() |
DefaultDelayingQueue(ExecutorService waitingWorker) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAfter(T item,
Duration duration)
addAfter adds an item to the workqueue after the indicated duration has passed.
|
protected void |
injectTimeSource(Supplier<Instant> fn) |
add, done, get, isShuttingDown, length, shutDownpublic static Duration heartBeatInterval
protected BlockingQueue<io.kubernetes.client.extended.workqueue.DefaultDelayingQueue.WaitForEntry<T>> waitingForAddQueue
public DefaultDelayingQueue(ExecutorService waitingWorker)
public DefaultDelayingQueue()
public void addAfter(T item, Duration duration)
DelayingQueueaddAfter in interface DelayingQueue<T>item - item to addduration - specific durationCopyright © 2023. All rights reserved.