|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.javasimon.callback.async.Executors
public final class Executors
This class contains some basic Executors.AsyncCallbackExecutors.
| Nested Class Summary | |
|---|---|
private static class |
Executors.AsyncCallbackExecutor<T>
Asynchronous, different thread executor |
| Field Summary | |
|---|---|
private static ExecutorService |
ASYNC_EXECUTOR_SERVICE
Single threaded executor service used by default async |
static Executor |
DISABLED
Disabled Executor |
static Executor |
SYNC
Synchronous, same thread Executor |
| Constructor Summary | |
|---|---|
Executors()
|
|
| Method Summary | ||
|---|---|---|
static
|
async()
Return asynchronous, different but unique thread executor |
|
static
|
async(ExecutorService executorService)
Return asynchronous, different thread executor |
|
static
|
disabled()
Return disabled executor |
|
private static ExecutorService |
initAsyncExecutorService()
Initializes default ingle threaded executor service |
|
void |
shutdownAsync()
Stop thread used by default async executor |
|
static
|
sync()
Return synchronous, same thread executor |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static Executor DISABLED
public static Executor SYNC
private static ExecutorService ASYNC_EXECUTOR_SERVICE
| Constructor Detail |
|---|
public Executors()
| Method Detail |
|---|
private static ExecutorService initAsyncExecutorService()
public static <T> Executor<T> disabled()
public static <T> Executor<T> sync()
public static <T> Executor<T> async(ExecutorService executorService)
public static <T> Executor<T> async()
public void shutdownAsync()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||