com.path.android.jobqueue
Class Job

java.lang.Object
  extended by com.path.android.jobqueue.BaseJob
      extended by com.path.android.jobqueue.Job
All Implemented Interfaces:
java.io.Serializable

public abstract class Job
extends BaseJob
implements java.io.Serializable

Base class for all of your jobs. If you were using BaseJob, please move to this instance since BaseJob will be removed from the public api.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.path.android.jobqueue.BaseJob
DEFAULT_RETRY_LIMIT
 
Constructor Summary
protected Job(Params params)
           
 
Method Summary
 long getDelayInMs()
          used by JobManager to assign proper delay at the time job is added.
 int getPriority()
          used by JobManager to assign proper priority at the time job is added.
 
Methods inherited from class com.path.android.jobqueue.BaseJob
getCurrentRunCount, getRetryLimit, getRunGroupId, isPersistent, onAdded, onCancel, onRun, requiresNetwork, safeRun, shouldReRunOnThrowable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Job

protected Job(Params params)
Method Detail

getPriority

public final int getPriority()
used by JobManager to assign proper priority at the time job is added. This field is not preserved!

Returns:
priority (higher = better)

getDelayInMs

public final long getDelayInMs()
used by JobManager to assign proper delay at the time job is added. This field is not preserved!

Returns:
delay in ms