public class DefaultExecutorServiceFactory extends Object implements ExecutorServiceFactory
Modifier and Type | Field and Description |
---|---|
static int |
MAX_THREADS_IN_POOL |
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 static int MAX_THREADS_IN_POOL
public DefaultExecutorServiceFactory()
public ScheduledExecutorService getScheduledExecutorService()
getScheduledExecutorService
in interface ExecutorServiceFactory
public ExecutorService getGpioEventExecutorService()
getGpioEventExecutorService
in interface ExecutorServiceFactory
public ExecutorService newSingleThreadExecutorService()
newSingleThreadExecutorService
in interface ExecutorServiceFactory
public void shutdown()
shutdown
in interface ExecutorServiceFactory
Copyright © 2012–2019 Pi4J. All rights reserved.