public class DefaultExecutorServiceFactory extends Object implements ExecutorServiceFactory
| Constructor and Description |
|---|
DefaultExecutorServiceFactory() |
| Modifier and Type | Method and Description |
|---|---|
ExecutorService |
getGpioEventExecutorService() |
ScheduledExecutorService |
getScheduledExecutorService()
return an instance to the scheduled executor service (wrapper)
|
ExecutorService |
newSingleThreadExecutorService()
return a new instance of a single thread executor service
This method is deprecated in favor of the getGpioEventExecutorService - which provides better guarantees around resource
management
|
void |
shutdown()
shutdown executor threads
|
public DefaultExecutorServiceFactory()
public ScheduledExecutorService getScheduledExecutorService()
getScheduledExecutorService in interface ExecutorServiceFactorypublic ExecutorService getGpioEventExecutorService()
getGpioEventExecutorService in interface ExecutorServiceFactorypublic ExecutorService newSingleThreadExecutorService()
newSingleThreadExecutorService in interface ExecutorServiceFactorypublic void shutdown()
shutdown in interface ExecutorServiceFactoryCopyright © 2012–2019 Pi4J. All rights reserved.