| Modifier and Type | Field and Description |
|---|---|
| pack-priv ExecutorService | |
| pack-priv Runnable | |
| private static ThreadLocal | |
| pack-priv boolean | |
| pack-priv long | |
| pack-priv Thread. |
| Access | Constructor and Description |
|---|---|
| public | ComThread(final String threadName, long timeoutMilliseconds, Thread.
|
| public | ComThread(final String threadName, long timeoutMilliseconds, Thread.
|
| Modifier and Type | Method and Description |
|---|---|
| public <T> T | |
| protected void | finalize()
Overrides java. |
| pack-priv static void | |
| public void | terminate(long
number of milliseconds to wait for a clean shutdown before a
forced shutdown is attempted timeoutMilliseconds)Stop the COM Thread. |
| executor | back to summary |
|---|---|
| pack-priv ExecutorService executor | |
| firstTask | back to summary |
|---|---|
| pack-priv Runnable firstTask | |
| isCOMThread | back to summary |
|---|---|
| private static ThreadLocal<Boolean> isCOMThread | |
| requiresInitialisation | back to summary |
|---|---|
| pack-priv boolean requiresInitialisation | |
| timeoutMilliseconds | back to summary |
|---|---|
| pack-priv long timeoutMilliseconds | |
| uncaughtExceptionHandler | back to summary |
|---|---|
| pack-priv Thread. | |
| ComThread | back to summary |
|---|---|
| public ComThread(final String threadName, long timeoutMilliseconds, Thread. | |
| ComThread | back to summary |
|---|---|
| public ComThread(final String threadName, long timeoutMilliseconds, Thread. | |
| execute | back to summary |
|---|---|
| public <T> T execute(Callable<T> task) throws TimeoutException, InterruptedException, ExecutionException | |
| finalize | back to summary |
|---|---|
| protected void finalize() throws Throwable Overrides java. Doc from java. Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
A subclass overrides the
When running in a Java virtual machine in which finalization has been
disabled or removed, the garbage collector will never call
The general contract of
The
The Java programming language does not guarantee which thread will
invoke the
After the
The
Any exception thrown by the | |
| setComThread | back to summary |
|---|---|
| pack-priv static void setComThread(boolean value) | |
| terminate | back to summary |
|---|---|
| public void terminate(long timeoutMilliseconds) Stop the COM Thread.
| |