@InterfaceAudience.Private public class TableQueue extends Queue<TableName>
Modifier and Type | Field and Description |
---|---|
private LockStatus |
namespaceLockStatus |
iterNext, iterPrev
avlHeight, avlLeft, avlRight
Constructor and Description |
---|
TableQueue(TableName tableName,
int priority,
LockStatus tableLock,
LockStatus namespaceLockStatus) |
Modifier and Type | Method and Description |
---|---|
boolean |
isAvailable() |
boolean |
requireExclusiveLock(Procedure<?> proc) |
static boolean |
requireTableExclusiveLock(TableProcedureInterface proc) |
add, compareKey, compareTo, getKey, getLockStatus, getPriority, isEmpty, peek, poll, size, toString
private final LockStatus namespaceLockStatus
public TableQueue(TableName tableName, int priority, LockStatus tableLock, LockStatus namespaceLockStatus)
public boolean isAvailable()
isAvailable
in class Queue<TableName>
public boolean requireExclusiveLock(Procedure<?> proc)
requireExclusiveLock
in class Queue<TableName>
proc
- must not be nullpublic static boolean requireTableExclusiveLock(TableProcedureInterface proc)
proc
- must not be nullCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.