JobDefaultOrder Class

public final class JobDefaultOrder
extends ExpandableStringEnum<JobDefaultOrder>

The order for scheduling tasks from different jobs with the same priority.

Field Summary

Modifier and Type Field and Description
static final JobDefaultOrder CREATION_TIME

If jobs have equal priority, tasks from jobs that were created earlier should be scheduled first.

static final JobDefaultOrder NONE

Tasks should be scheduled uniformly from all equal-priority jobs for the pool.

Constructor Summary

Constructor Description
JobDefaultOrder()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of JobDefaultOrder value.

Method Summary

Modifier and Type Method and Description
static JobDefaultOrder fromString(String name)

Creates or finds a JobDefaultOrder from its string representation.

static Collection<JobDefaultOrder> values()

Gets known JobDefaultOrder values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

CREATION_TIME

public static final JobDefaultOrder CREATION_TIME

If jobs have equal priority, tasks from jobs that were created earlier should be scheduled first.

NONE

public static final JobDefaultOrder NONE

Tasks should be scheduled uniformly from all equal-priority jobs for the pool.

Constructor Details

JobDefaultOrder

@Deprecated
public JobDefaultOrder()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of JobDefaultOrder value.

Method Details

fromString

public static JobDefaultOrder fromString(String name)

Creates or finds a JobDefaultOrder from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding JobDefaultOrder.

values

public static Collection<JobDefaultOrder> values()

Gets known JobDefaultOrder values.

Returns:

known JobDefaultOrder values.

Applies to