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
ThisExecutorServiceFactoryextends theDefaultExecutorServiceFactorybut 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 ExecutorServicegetGpioEventExecutorService()voidshutdown()shutdown executor threads-
Methods inherited from class com.pi4j.concurrent.DefaultExecutorServiceFactory
getEventExecutorService, getScheduledExecutorService, getThreadFactory, newSingleThreadExecutorService, shutdownExecutor
-
-
-
-
Method Detail
-
getGpioEventExecutorService
public ExecutorService getGpioEventExecutorService()
- Specified by:
getGpioEventExecutorServicein interfaceExecutorServiceFactory- Overrides:
getGpioEventExecutorServicein classDefaultExecutorServiceFactory
-
shutdown
public void shutdown()
Description copied from class:DefaultExecutorServiceFactoryshutdown executor threads- Specified by:
shutdownin interfaceExecutorServiceFactory- Overrides:
shutdownin classDefaultExecutorServiceFactory
-
-