Klasse ComThread
java.lang.Object
com.sun.jna.platform.win32.COM.util.ComThread
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibung(Package privat) ExecutorService
(Package privat) Runnable
(Package privat) boolean
(Package privat) long
(Package privat) Thread.UncaughtExceptionHandler
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungComThread
(String threadName, long timeoutMilliseconds, Thread.UncaughtExceptionHandler uncaughtExceptionHandler) ComThread
(String threadName, long timeoutMilliseconds, Thread.UncaughtExceptionHandler uncaughtExceptionHandler, int coinitialiseExFlag) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibung<T> T
protected void
finalize()
(Package privat) static void
setComThread
(boolean value) void
terminate
(long timeoutMilliseconds) Stop the COM Thread.
-
Felddetails
-
executor
ExecutorService executor -
firstTask
Runnable firstTask -
requiresInitialisation
boolean requiresInitialisation -
timeoutMilliseconds
long timeoutMilliseconds -
uncaughtExceptionHandler
Thread.UncaughtExceptionHandler uncaughtExceptionHandler
-
-
Konstruktordetails
-
ComThread
public ComThread(String threadName, long timeoutMilliseconds, Thread.UncaughtExceptionHandler uncaughtExceptionHandler) -
ComThread
public ComThread(String threadName, long timeoutMilliseconds, Thread.UncaughtExceptionHandler uncaughtExceptionHandler, int coinitialiseExFlag)
-
-
Methodendetails
-
terminate
public void terminate(long timeoutMilliseconds) Stop the COM Thread.- Parameter:
timeoutMilliseconds
- number of milliseconds to wait for a clean shutdown before a forced shutdown is attempted
-
finalize
-
setComThread
static void setComThread(boolean value) -
execute
public <T> T execute(Callable<T> task) throws TimeoutException, InterruptedException, ExecutionException
-