Package rx.internal.schedulers
Enum GenericScheduledExecutorServiceFactory
- java.lang.Object
-
- java.lang.Enum<GenericScheduledExecutorServiceFactory>
-
- rx.internal.schedulers.GenericScheduledExecutorServiceFactory
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<GenericScheduledExecutorServiceFactory>
enum GenericScheduledExecutorServiceFactory extends java.lang.Enum<GenericScheduledExecutorServiceFactory>
Utility class to create the individual ScheduledExecutorService instances for the GenericScheduledExecutorService class.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static RxThreadFactory
THREAD_FACTORY
(package private) static java.lang.String
THREAD_NAME_PREFIX
-
Constructor Summary
Constructors Modifier Constructor Description private
GenericScheduledExecutorServiceFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.concurrent.ScheduledExecutorService
create()
Creates a ScheduledExecutorService (either the default or given by a hook).(package private) static java.util.concurrent.ScheduledExecutorService
createDefault()
(package private) static java.util.concurrent.ThreadFactory
threadFactory()
static GenericScheduledExecutorServiceFactory
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static GenericScheduledExecutorServiceFactory[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Field Detail
-
THREAD_NAME_PREFIX
static final java.lang.String THREAD_NAME_PREFIX
- See Also:
- Constant Field Values
-
THREAD_FACTORY
static final RxThreadFactory THREAD_FACTORY
-
-
Method Detail
-
values
public static GenericScheduledExecutorServiceFactory[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (GenericScheduledExecutorServiceFactory c : GenericScheduledExecutorServiceFactory.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GenericScheduledExecutorServiceFactory valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
threadFactory
static java.util.concurrent.ThreadFactory threadFactory()
-
create
public static java.util.concurrent.ScheduledExecutorService create()
Creates a ScheduledExecutorService (either the default or given by a hook).- Returns:
- the SchuduledExecutorService created.
-
createDefault
static java.util.concurrent.ScheduledExecutorService createDefault()
-
-