public class AcquireJobsRunnable extends Object implements Runnable
Modifier and Type | Field and Description |
---|---|
protected boolean |
isInterrupted |
protected boolean |
isJobAdded |
protected AtomicBoolean |
isWaiting |
protected JobExecutor |
jobExecutor |
protected long |
maxWait |
protected long |
millisToWait |
protected Object |
MONITOR |
protected float |
waitIncreaseFactor |
Constructor and Description |
---|
AcquireJobsRunnable(JobExecutor jobExecutor) |
Modifier and Type | Method and Description |
---|---|
long |
getMaxWait() |
long |
getMillisToWait() |
float |
getWaitIncreaseFactor() |
void |
jobWasAdded() |
void |
run() |
void |
setMaxWait(long maxWait) |
void |
setMillisToWait(long millisToWait) |
void |
setWaitIncreaseFactor(float waitIncreaseFactor) |
void |
stop() |
protected final JobExecutor jobExecutor
protected volatile boolean isInterrupted
protected volatile boolean isJobAdded
protected final Object MONITOR
protected final AtomicBoolean isWaiting
protected long millisToWait
protected float waitIncreaseFactor
protected long maxWait
public AcquireJobsRunnable(JobExecutor jobExecutor)
public void stop()
public void jobWasAdded()
public long getMillisToWait()
public void setMillisToWait(long millisToWait)
public float getWaitIncreaseFactor()
public void setWaitIncreaseFactor(float waitIncreaseFactor)
public long getMaxWait()
public void setMaxWait(long maxWait)
Copyright © 2015. All rights reserved.