Class DefaultDelayingQueue<T>
java.lang.Object
io.micronaut.kubernetes.client.openapi.operator.workqueue.DefaultWorkQueue<T>
io.micronaut.kubernetes.client.openapi.operator.workqueue.DefaultDelayingQueue<T>
- Type Parameters:
T
- item type
- All Implemented Interfaces:
DelayingQueue<T>
,WorkQueue<T>
- Direct Known Subclasses:
DefaultRateLimitingQueue
The default delaying queue implementation.
The code has been copied from the official client and modified: DefaultDelayingQueue
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.micronaut.kubernetes.client.openapi.operator.workqueue.DefaultWorkQueue
add, done, get, isShutdown, length
-
Constructor Details
-
DefaultDelayingQueue
-
-
Method Details
-
start
public void start()Description copied from interface:WorkQueue
Starts the work queue. Can be called after shutdown to enable queue usage. -
shutdown
public void shutdown()Description copied from interface:WorkQueue
Initiates a shutdown of the work queue. All added items whose processing not started will be ignored and removed from the queue. -
addAfter
Adds given item to the queue after given duration expires.- Specified by:
addAfter
in interfaceDelayingQueue<T>
- Parameters:
item
- item to addduration
- specific duration
-