public class BaseQueuePrecedencePolicy extends QueuePrecedencePolicy implements HasKeyedProperties
Modifier and Type | Field and Description |
---|---|
protected KeyedProperties |
kp |
Constructor and Description |
---|
BaseQueuePrecedencePolicy() |
Modifier and Type | Method and Description |
---|---|
protected int |
calculatePrecedence(WorkQueue wq)
Calculate the precedence value for the given queue.
|
int |
getBasePrecedence() |
KeyedProperties |
getKeyedProperties() |
protected void |
installProvider(WorkQueue wq)
Install the appropriate provider helper object into the WorkQueue,
if necessary.
|
void |
queueCreated(WorkQueue wq)
Set an appropriate initial precedence value on the given
newly-created WorkQueue.
|
void |
queueReevaluate(WorkQueue wq)
Update an appropriate initial precedence value on the given
already-existing WorkQueue.
|
void |
setBasePrecedence(int precedence) |
protected KeyedProperties kp
public KeyedProperties getKeyedProperties()
getKeyedProperties
in interface HasKeyedProperties
public int getBasePrecedence()
public void setBasePrecedence(int precedence)
public void queueCreated(WorkQueue wq)
QueuePrecedencePolicy
queueCreated
in class QueuePrecedencePolicy
wq
- WorkQueue to modifyprotected void installProvider(WorkQueue wq)
wq
- target WorkQueue this policy will operate onprotected int calculatePrecedence(WorkQueue wq)
wq
- WorkQueuepublic void queueReevaluate(WorkQueue wq)
QueuePrecedencePolicy
queueReevaluate
in class QueuePrecedencePolicy
wq
- WorkQueue to modifyCopyright © 2003-2014 Internet Archive. All Rights Reserved.