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 |
|---|---|
ScheduledExecutorService |
getScheduledExecutorService()
return an instance to the scheduled executor service (wrapper)
|
ExecutorService |
newSingleThreadExecutorService()
return a new instance of a single thread executor service
|
void |
shutdown()
shutdown executor threads
|
public ScheduledExecutorService getScheduledExecutorService()
getScheduledExecutorService in interface ExecutorServiceFactorypublic ExecutorService newSingleThreadExecutorService()
newSingleThreadExecutorService in interface ExecutorServiceFactorypublic void shutdown()
shutdown in interface ExecutorServiceFactoryCopyright © 2012-2013 Pi4J. All Rights Reserved.