Module com.github.kwhat.jnativehook
Class SwingDispatchService
- java.lang.Object
-
- java.util.concurrent.AbstractExecutorService
-
- com.github.kwhat.jnativehook.dispatcher.SwingDispatchService
-
- All Implemented Interfaces:
Executor,ExecutorService
public class SwingDispatchService extends AbstractExecutorService
Swing compatible implementation of theExecutorServiceused to dispatch native events. This wraps event dispatching withEventQueue.invokeLater(java.lang.Runnable).- Since:
- 2.0
- Version:
- 2.0
- Author:
- Alexander Barker (alex@1stleg.com)
- See Also:
ExecutorService,GlobalScreen.setEventDispatcher(java.util.concurrent.ExecutorService)
-
-
Constructor Summary
Constructors Constructor Description SwingDispatchService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawaitTermination(long timeout, TimeUnit unit)voidexecute(Runnable r)booleanisShutdown()booleanisTerminated()voidshutdown()List<Runnable>shutdownNow()-
Methods inherited from class java.util.concurrent.AbstractExecutorService
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submit
-
-