System configuration properties:
| Property name | Description | Default |
rx.io-scheduler.keepalive | time (in seconds) to keep an unused backing thread-pool | 60 |
rx.scheduler.max-computation-threads | number of threads the computation scheduler uses (between 1 and number of available processors) | number of available processors. |
rx.scheduler.jdk6.purge-frequency-millis | time (in milliseconds) between calling purge on any active backing thread-pool on a Java 6 runtime | 1000 |
rx.scheduler.jdk6.purge-force | boolean forcing the call to purge on any active backing thread-pool | false |
| Modifier and Type | Field and Description |
|---|---|
| private final Scheduler | |
| private static final AtomicReference | |
| private final Scheduler | |
| private final Scheduler |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Scheduler | Returns: aScheduler meant for computation-bound workCreates and returns a |
| public static Scheduler | |
| private static Schedulers | |
| public static Scheduler | |
| public static Scheduler | |
| public static Scheduler | |
| public static void | |
| public static void | |
| pack-priv synchronized void | |
| public static void | |
| pack-priv synchronized void | |
| public static TestScheduler | Returns: aTestScheduler meant for debuggingCreates and returns a |
| public static Scheduler | Returns: aScheduler that queues work on the current threadCreates and returns a |
| computationScheduler | back to summary |
|---|---|
| private final Scheduler computationScheduler | |
| INSTANCE | back to summary |
|---|---|
| private static final AtomicReference<Schedulers> INSTANCE | |
| ioScheduler | back to summary |
|---|---|
| private final Scheduler ioScheduler | |
| newThreadScheduler | back to summary |
|---|---|
| private final Scheduler newThreadScheduler | |
| Schedulers | back to summary |
|---|---|
| private Schedulers() | |
| computation | back to summary |
|---|---|
| public static Scheduler computation() Creates and returns a This can be used for event-loops, processing callbacks and other computational work.
Do not perform IO-bound work on this scheduler. Use
Unhandled errors will be delivered to the scheduler Thread's | |
| from | back to summary |
|---|---|
| public static Scheduler from(Executor executor) Converts an | |
| getInstance | back to summary |
|---|---|
| private static Schedulers getInstance() | |
| immediate | back to summary |
|---|---|
| public static Scheduler immediate() Creates and returns a | |
| io | back to summary |
|---|---|
| public static Scheduler io() Creates and returns a
The implementation is backed by an This can be used for asynchronously performing blocking IO.
Do not perform computational work on this scheduler. Use
Unhandled errors will be delivered to the scheduler Thread's | |
| newThread | back to summary |
|---|---|
| public static Scheduler newThread() Creates and returns a
Unhandled errors will be delivered to the scheduler Thread's | |
| reset | back to summary |
|---|---|
| public static void reset() Resets the current
| |
| shutdown | back to summary |
|---|---|
| public static void shutdown() Shuts down those standard Schedulers which support the SchedulerLifecycle interface. The operation is idempotent and thread-safe. | |
| shutdownInstance | back to summary |
|---|---|
| pack-priv synchronized void shutdownInstance() Start the instance-specific schedulers. | |
| start | back to summary |
|---|---|
| public static void start() Starts those standard Schedulers which support the SchedulerLifecycle interface. The operation is idempotent and thread-safe. | |
| startInstance | back to summary |
|---|---|
| pack-priv synchronized void startInstance() Start the instance-specific schedulers. | |
| test | back to summary |
|---|---|
| public static TestScheduler test() Creates and returns a
| |
| trampoline | back to summary |
|---|---|
| public static Scheduler trampoline() Creates and returns a | |