public static final class ITaskQueue.Priority extends java.lang.Object implements ITaskQueue<ITaskQueue.RunnableWithPriority,java.lang.Runnable>
ITaskQueue.Priority, ITaskQueue.RunnableWithPriority, ITaskQueue.Single<T>
Modifier and Type | Field and Description |
---|---|
private java.util.List<java.util.Queue<java.lang.Runnable>> |
queues |
Constructor and Description |
---|
Priority(int queueCount) |
Modifier and Type | Method and Description |
---|---|
boolean |
enqueue(ITaskQueue.RunnableWithPriority value) |
boolean |
isEmpty() |
java.lang.Runnable |
poll() |
@Nullable public java.lang.Runnable poll()
poll
in interface ITaskQueue<ITaskQueue.RunnableWithPriority,java.lang.Runnable>
public boolean enqueue(ITaskQueue.RunnableWithPriority value)
enqueue
in interface ITaskQueue<ITaskQueue.RunnableWithPriority,java.lang.Runnable>
public boolean isEmpty()
isEmpty
in interface ITaskQueue<ITaskQueue.RunnableWithPriority,java.lang.Runnable>