Package | Description |
---|---|
javascalautils.concurrent |
Contains utilities for concurrent/asynchronous programming.
|
Modifier and Type | Method and Description |
---|---|
Executor |
ExecutorProvider.create()
Used to create the default
Executor instance. |
static Executor |
Executors.create(Executor threadPool)
Creates an executor that uses the provided Java concurrent executor for the actual job processing
|
static Executor |
Executors.createCachedThreadPoolExecutor(ThreadFactory threadFactory)
Creates an executor that uses the
Executors.newCachedThreadPool(ThreadFactory) . |
static Executor |
Executors.createFixedThreadPoolExecutor(int threads,
ThreadFactory threadFactory)
Creates an executor that uses the
Executors.newFixedThreadPool(int,ThreadFactory) |
static Executor |
Executors.getDefault()
Get the default thread executor.
|
Modifier and Type | Method and Description |
---|---|
static <T> Future<T> |
Future.apply(ThrowableFunction0<T> function,
Executor executor)
Allows for easy creation of asynchronous computations that will be executed in the future.
|
static <T> Future<T> |
FutureCompanion.Future(Future<T> future,
Executor executor)
Allows for converting a blocking JDK
Future into a non-blocking future. |
static <T> Future<T> |
FutureCompanion.Future(ThrowableFunction0<T> function,
Executor executor)
Allows for easy creation of asynchronous computations that will be executed in the future.
|
Copyright © 2015, Peter Nerg Apache License v2.0