public class Configuration
extends java.lang.Object
JobManager configuration object| Modifier and Type | Class and Description |
|---|---|
static class |
Configuration.Builder |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_ID
The default id for a Job.
|
static int |
DEFAULT_LOAD_FACTOR_PER_CONSUMER
The default number of jobs per thread before JobManager creates a new one
|
static int |
DEFAULT_THREAD_KEEP_ALIVE_SECONDS
The default timeout for an idle thread before it is destroyed
|
static int |
DEFAULT_THREAD_PRIORITY
The default priority for new job consumers (
Thread.NORM_PRIORITY). |
static int |
MAX_CONSUMER_COUNT
The default max number of consumers that will be created by the JobManager
|
static int |
MIN_CONSUMER_COUNT
The default min number of consumers that will be kept alive by the JobManager
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
batchSchedulerRequests() |
android.content.Context |
getAppContext() |
int |
getConsumerKeepAlive() |
CustomLogger |
getCustomLogger() |
DependencyInjector |
getDependencyInjector() |
java.lang.String |
getId() |
int |
getLoadFactor() |
int |
getMaxConsumerCount() |
int |
getMinConsumerCount() |
NetworkUtil |
getNetworkUtil() |
QueueFactory |
getQueueFactory() |
Scheduler |
getScheduler() |
java.util.concurrent.ThreadFactory |
getThreadFactory() |
int |
getThreadPriority() |
Timer |
getTimer() |
boolean |
isInTestMode() |
boolean |
resetDelaysOnRestart() |
public static final java.lang.String DEFAULT_ID
Configuration.Builder.id(String)public static final int DEFAULT_THREAD_KEEP_ALIVE_SECONDS
public static final int DEFAULT_LOAD_FACTOR_PER_CONSUMER
public static final int MAX_CONSUMER_COUNT
public static final int MIN_CONSUMER_COUNT
public static final int DEFAULT_THREAD_PRIORITY
Thread.NORM_PRIORITY).@NonNull public android.content.Context getAppContext()
@NonNull public java.lang.String getId()
public boolean batchSchedulerRequests()
@NonNull public QueueFactory getQueueFactory()
@Nullable public DependencyInjector getDependencyInjector()
public int getConsumerKeepAlive()
@NonNull public NetworkUtil getNetworkUtil()
public int getMaxConsumerCount()
public int getMinConsumerCount()
@Nullable public CustomLogger getCustomLogger()
public int getLoadFactor()
public boolean isInTestMode()
@NonNull public Timer getTimer()
public boolean resetDelaysOnRestart()
@Nullable public Scheduler getScheduler()
public int getThreadPriority()
@Nullable public java.util.concurrent.ThreadFactory getThreadFactory()