Module com.github.kwhat.jnativehook
Class VoidDispatchService
java.lang.Object
java.util.concurrent.AbstractExecutorService
com.github.kwhat.jnativehook.dispatcher.VoidDispatchService
- All Implemented Interfaces:
Executor,ExecutorService
Void implementation of the
ExecutorService used to dispatch native events directly on the operating
system's event delivery thread. Because this queue does not hand off events to a different thread, it is important
that you do not block on native event callback functions as it will delay or prevent subsequent events from being
delivered by the operating system. This dispatcher should only be used by those attempting to consume native events.- Since:
- 2.2
- Version:
- 2.2
- Author:
- Alexander Barker (alex@1stleg.com)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long timeout, TimeUnit unit) voidbooleanbooleanvoidshutdown()Methods inherited from class java.util.concurrent.AbstractExecutorService
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submit
-
Constructor Details
-
VoidDispatchService
public VoidDispatchService()
-
-
Method Details
-
shutdown
public void shutdown() -
shutdownNow
-
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
awaitTermination
-
execute
-