private abstract static class MasterProcedureScheduler.QueueImpl<TKey extends Comparable<TKey>> extends MasterProcedureScheduler.Queue<TKey>
Modifier and Type | Field and Description |
---|---|
private ArrayDeque<Procedure> |
runnables |
Constructor and Description |
---|
MasterProcedureScheduler.QueueImpl(TKey key) |
MasterProcedureScheduler.QueueImpl(TKey key,
int priority) |
Modifier and Type | Method and Description |
---|---|
void |
add(Procedure proc,
boolean addToFront) |
protected void |
addBack(Procedure proc) |
protected void |
addFront(Procedure proc) |
boolean |
isEmpty() |
Procedure |
peek() |
Procedure |
poll() |
int |
size() |
compareKey, compareTo, getKey, getPriority, hasExclusiveLock, isAvailable, isLocked, isSingleSharedLock, isSuspended, releaseExclusiveLock, releaseSharedLock, setSuspended, toString, tryExclusiveLock, trySharedLock
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
requireExclusiveLock
private final ArrayDeque<Procedure> runnables
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.