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 ExecutorServiceFactory
public ExecutorService getGpioEventExecutorService()
getGpioEventExecutorService
in interface ExecutorServiceFactory
public ExecutorService newSingleThreadExecutorService()
newSingleThreadExecutorService
in interface ExecutorServiceFactory
public void shutdown()
shutdown
in interface ExecutorServiceFactory
Copyright © 2012–2021 Pi4J. All rights reserved.