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, trySharedLockclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitrequireExclusiveLockprivate final ArrayDeque<Procedure> runnables
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.