class JobStorage extends Object
Modifier and Type | Field and Description |
---|---|
static String |
COLUMN_BACKOFF_MS |
static String |
COLUMN_BACKOFF_POLICY |
static String |
COLUMN_END_MS |
static String |
COLUMN_EXACT |
static String |
COLUMN_EXTRAS |
static String |
COLUMN_FLEX_MS |
static String |
COLUMN_FLEX_SUPPORT |
static String |
COLUMN_ID |
static String |
COLUMN_INTERVAL_MS |
static String |
COLUMN_LAST_RUN |
static String |
COLUMN_NETWORK_TYPE |
static String |
COLUMN_NUM_FAILURES |
static String |
COLUMN_REQUIREMENTS_ENFORCED |
static String |
COLUMN_REQUIRES_BATTERY_NOT_LOW |
static String |
COLUMN_REQUIRES_CHARGING |
static String |
COLUMN_REQUIRES_DEVICE_IDLE |
static String |
COLUMN_REQUIRES_STORAGE_NOT_LOW |
static String |
COLUMN_SCHEDULED_AT |
static String |
COLUMN_START_MS |
static String |
COLUMN_STARTED |
static String |
COLUMN_TAG |
static String |
COLUMN_TRANSIENT |
static String |
DATABASE_NAME |
static int |
DATABASE_VERSION |
static String |
JOB_ID_COUNTER |
static String |
JOB_TABLE_NAME |
static String |
PREF_FILE_NAME |
Constructor and Description |
---|
JobStorage(Context context) |
JobStorage(Context context,
String databasePath) |
Modifier and Type | Method and Description |
---|---|
JobRequest |
get(int id) |
Set<JobRequest> |
getAllJobRequests(String tag,
boolean includeStarted) |
(package private) SQLiteDatabase |
getDatabase() |
(package private) Set<String> |
getFailedDeleteIds() |
(package private) int |
getMaxJobId() |
(package private) void |
injectDatabase(SQLiteDatabase database) |
int |
nextJobId() |
void |
put(JobRequest request) |
void |
remove(JobRequest request) |
void |
update(JobRequest request,
ContentValues contentValues) |
public static final String JOB_ID_COUNTER
public static final String PREF_FILE_NAME
public static final String DATABASE_NAME
public static final int DATABASE_VERSION
public static final String JOB_TABLE_NAME
public static final String COLUMN_ID
public static final String COLUMN_TAG
public static final String COLUMN_START_MS
public static final String COLUMN_END_MS
public static final String COLUMN_BACKOFF_MS
public static final String COLUMN_BACKOFF_POLICY
public static final String COLUMN_INTERVAL_MS
public static final String COLUMN_REQUIREMENTS_ENFORCED
public static final String COLUMN_REQUIRES_CHARGING
public static final String COLUMN_REQUIRES_DEVICE_IDLE
public static final String COLUMN_EXACT
public static final String COLUMN_NETWORK_TYPE
public static final String COLUMN_EXTRAS
public static final String COLUMN_NUM_FAILURES
public static final String COLUMN_SCHEDULED_AT
public static final String COLUMN_STARTED
public static final String COLUMN_FLEX_MS
public static final String COLUMN_FLEX_SUPPORT
public static final String COLUMN_LAST_RUN
public static final String COLUMN_TRANSIENT
public static final String COLUMN_REQUIRES_BATTERY_NOT_LOW
public static final String COLUMN_REQUIRES_STORAGE_NOT_LOW
public JobStorage(Context context)
public void put(JobRequest request)
public void update(JobRequest request, ContentValues contentValues)
public JobRequest get(int id)
public Set<JobRequest> getAllJobRequests(@Nullable String tag, boolean includeStarted)
public void remove(JobRequest request)
public int nextJobId()
@NonNull SQLiteDatabase getDatabase()
void injectDatabase(SQLiteDatabase database)
int getMaxJobId()