Package com.pi4j.concurrent
Class SingleThreadGpioExecutorServiceFactory
- java.lang.Object
-
- com.pi4j.concurrent.DefaultExecutorServiceFactory
-
- com.pi4j.concurrent.SingleThreadGpioExecutorServiceFactory
-
- All Implemented Interfaces:
ExecutorServiceFactory
public class SingleThreadGpioExecutorServiceFactory extends DefaultExecutorServiceFactory
ThisExecutorServiceFactory
extends theDefaultExecutorServiceFactory
but changes the GPIO event executor to be single threaded
-
-
Constructor Summary
Constructors Constructor Description SingleThreadGpioExecutorServiceFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecutorService
getGpioEventExecutorService()
void
shutdown()
shutdown executor threads-
Methods inherited from class com.pi4j.concurrent.DefaultExecutorServiceFactory
getEventExecutorService, getScheduledExecutorService, getThreadFactory, newSingleThreadExecutorService, shutdownExecutor
-
-
-
-
Method Detail
-
getGpioEventExecutorService
public ExecutorService getGpioEventExecutorService()
- Specified by:
getGpioEventExecutorService
in interfaceExecutorServiceFactory
- Overrides:
getGpioEventExecutorService
in classDefaultExecutorServiceFactory
-
shutdown
public void shutdown()
Description copied from class:DefaultExecutorServiceFactory
shutdown executor threads- Specified by:
shutdown
in interfaceExecutorServiceFactory
- Overrides:
shutdown
in classDefaultExecutorServiceFactory
-
-