OutOfQuotaPolicy
public
final
enum
OutOfQuotaPolicy
extends Enum<OutOfQuotaPolicy>
java.lang.Object | ||
↳ | java.lang.Enum<androidx.work.OutOfQuotaPolicy> | |
↳ | androidx.work.OutOfQuotaPolicy |
An enumeration of policies that help determine out of quota behavior for expedited jobs.
Summary
Enum values | |
---|---|
OutOfQuotaPolicy |
DROP_WORK_REQUEST
When the app does not have any expedited job quota, the expedited work request will we dropped and no work requests are enqueued. |
OutOfQuotaPolicy |
RUN_AS_NON_EXPEDITED_WORK_REQUEST
When the app does not have any expedited job quota, the expedited work request will fallback to a regular work request. |
Public methods | |
---|---|
static
OutOfQuotaPolicy
|
valueOf(String name)
|
static
final
OutOfQuotaPolicy[]
|
values()
|
Inherited methods | |
---|---|
Enum values
DROP_WORK_REQUEST
public static final OutOfQuotaPolicy DROP_WORK_REQUEST
When the app does not have any expedited job quota, the expedited work request will we dropped and no work requests are enqueued.
RUN_AS_NON_EXPEDITED_WORK_REQUEST
public static final OutOfQuotaPolicy RUN_AS_NON_EXPEDITED_WORK_REQUEST
When the app does not have any expedited job quota, the expedited work request will fallback to a regular work request.
Public methods
valueOf
public static OutOfQuotaPolicy valueOf (String name)
Parameters | |
---|---|
name |
String |
Returns | |
---|---|
OutOfQuotaPolicy |
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-02-24 UTC.