|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||
JobQueue interface, wraps another JobQueue and caches
results to avoid unnecessary queries to wrapped JobQueue.JobManager configuration objectcreatedNs value so that we know when job is created
in relation to others
TimeAwarePriorityQueue
PriorityQueue with given comparator
JobManager
it is very similar to Roboguice's loggerSqliteJobQueue to handle database connectionJobManager for dependency injection
it is called before the job's onAdded method is called.JobManager to assign proper delay at the time job is added.
Job.
JobManager to assign proper priority at the time job is added.
DEFAULT_RETRY_LIMIT times.
JobHolder to related JobQueue.
JobManager.NOT_RUNNING_SESSION_ID
Is called when a job is re-added (due to exception during run)
JobManager.NOT_RUNNING_SESSION_ID
Is called when a job is re-added (due to exception during run)
JobManager.NOT_RUNNING_SESSION_ID
Is called when a job is re-added (due to exception during run)
JobManager and JobConsumerExecutorSqliteJobQueue and 1 NonPersistentPriorityQueue
Configuration
SqliteJobQueue and one NonPersistentPriorityQueue
both are wrapped inside a CachedJobQueue to improve performanceSqliteJobQueue queue for persistence.
CustomLogger.JobHolder
While retrieving items, it uses a different comparison method to handle dynamic comparisons (e.g.MergedQueue class that can separate jobs based on their network requirementJobManager can avoid
busy loops when there is a job waiting for network and there is no network availableNetworkUtilImpl that queries ConnectivityManager
to check if network connection exists.
NetworkUtil implements NetworkEventProvider, this method is called when network is recovered
Queue.peek() implementation with network requirement filter
Queue.poll() implementation with network requirement filter
JobQueue to function.
JobQueues for JobManagerJobQueue
NetworkUtil
reports that there is a network connection
JobManager should persist this job or not.
onRun method throws an exception, this method is called.
SqliteJobQueue to generate sql queries and statements.MergedQueue class that can handle queue updates based on time.
|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||