Class ComThread
java.lang.Object
com.sun.jna.platform.win32.COM.util.ComThread
- 
Field SummaryFieldsModifier and TypeFieldDescription(package private) ExecutorService(package private) Runnable(package private) boolean(package private) long(package private) Thread.UncaughtExceptionHandler
- 
Constructor SummaryConstructorsConstructorDescriptionComThread(String threadName, long timeoutMilliseconds, Thread.UncaughtExceptionHandler uncaughtExceptionHandler) ComThread(String threadName, long timeoutMilliseconds, Thread.UncaughtExceptionHandler uncaughtExceptionHandler, int coinitialiseExFlag) 
- 
Method SummaryModifier and TypeMethodDescription<T> Tprotected voidfinalize()(package private) static voidsetComThread(boolean value) voidterminate(long timeoutMilliseconds) Stop the COM Thread.
- 
Field Details- 
executorExecutorService executor
- 
firstTaskRunnable firstTask
- 
requiresInitialisationboolean requiresInitialisation
- 
timeoutMillisecondslong timeoutMilliseconds
- 
uncaughtExceptionHandlerThread.UncaughtExceptionHandler uncaughtExceptionHandler
 
- 
- 
Constructor Details- 
ComThreadpublic ComThread(String threadName, long timeoutMilliseconds, Thread.UncaughtExceptionHandler uncaughtExceptionHandler) 
- 
ComThreadpublic ComThread(String threadName, long timeoutMilliseconds, Thread.UncaughtExceptionHandler uncaughtExceptionHandler, int coinitialiseExFlag) 
 
- 
- 
Method Details- 
terminatepublic void terminate(long timeoutMilliseconds) Stop the COM Thread.- Parameters:
- timeoutMilliseconds- number of milliseconds to wait for a clean shutdown before a forced shutdown is attempted
 
- 
finalize
- 
setComThreadstatic void setComThread(boolean value) 
- 
executepublic <T> T execute(Callable<T> task) throws TimeoutException, InterruptedException, ExecutionException 
 
-