|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.path.android.jobqueue.executor.JobConsumerExecutor
public class JobConsumerExecutor
An executor class that takes care of spinning consumer threads and making sure enough is alive.
works deeply coupled with JobManager
| Nested Class Summary | |
|---|---|
static interface |
JobConsumerExecutor.Contract
contract between the JobManager and JobConsumerExecutor |
| Constructor Summary | |
|---|---|
JobConsumerExecutor(Configuration config,
JobConsumerExecutor.Contract contract)
|
|
| Method Summary | |
|---|---|
void |
considerAddingConsumer()
creates a new consumer thread if needed. |
boolean |
isRunning(long id,
boolean persistent)
returns true if job is currently handled by one of the executor threads |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JobConsumerExecutor(Configuration config,
JobConsumerExecutor.Contract contract)
| Method Detail |
|---|
public void considerAddingConsumer()
public boolean isRunning(long id,
boolean persistent)
id - id of the jobpersistent - boolean flag to distinguish id conflicts
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||