|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jtoolkit.essence.concurrency.Threads
public class Threads
| Field Summary | |
|---|---|
static java.lang.String |
CONTROL_THREAD
|
static java.lang.String |
INTERRUPTED
|
static java.lang.String |
LOGICAL_PROCESS
|
| Method Summary | |
|---|---|
static void |
clearDefaultSES()
Remove the default ScheduledExecutorService |
static void |
createDefaultSES()
Create a default ScheduledExecutorService for processing callbacks for threaded outside the container. |
static java.util.concurrent.ScheduledExecutorService |
createMultiSES(java.lang.String name,
int maxThreads,
int priority)
|
static java.util.concurrent.ScheduledExecutorService |
createSingleSES(java.lang.String name)
Create a single threaded ScheduledExecutorService |
static java.util.concurrent.ScheduledExecutorService |
createSingleSES(java.lang.String name,
int priority)
|
static boolean |
dumpStack(java.lang.Thread thread,
java.lang.StackTraceElement[] stackTraceElements)
Log the threads stack dump. |
static void |
dumpStacks()
Dump all thread stacks in a summarised form. |
static java.util.concurrent.ScheduledExecutorService |
getCurrentSES()
|
static java.lang.Runnable |
getWeakRunnable(java.lang.Runnable run)
|
static boolean |
isNotThreadSafe(java.lang.Object component)
|
static java.util.concurrent.Future |
onTimeout(Timeout timeout,
java.lang.Runnable runnable)
When a timeout occurs run the Runnable (unless cancelled). |
static void |
shutdown(java.util.concurrent.ExecutorService executorService)
|
static java.lang.String |
stackSnapshot()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CONTROL_THREAD
public static final java.lang.String LOGICAL_PROCESS
public static final java.lang.String INTERRUPTED
| Method Detail |
|---|
@NotNull
public static java.util.concurrent.ScheduledExecutorService createSingleSES(@NotNull
java.lang.String name)
name - of the thread in the SES
@NotNull
public static java.util.concurrent.ScheduledExecutorService createSingleSES(@NotNull
java.lang.String name,
int priority)
@NotNull
public static java.util.concurrent.ScheduledExecutorService createMultiSES(@NotNull
java.lang.String name,
int maxThreads,
int priority)
public static void dumpStacks()
public static boolean dumpStack(@Nullable
java.lang.Thread thread,
@Nullable
java.lang.StackTraceElement[] stackTraceElements)
thread - stackTraceElements - public static void createDefaultSES()
public static void clearDefaultSES()
public static java.util.concurrent.ScheduledExecutorService getCurrentSES()
@Nullable
public static java.util.concurrent.Future onTimeout(Timeout timeout,
java.lang.Runnable runnable)
public static java.lang.String stackSnapshot()
public static boolean isNotThreadSafe(@NotNull
java.lang.Object component)
public static void shutdown(java.util.concurrent.ExecutorService executorService)
public static java.lang.Runnable getWeakRunnable(java.lang.Runnable run)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||