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 static int MAX_THREADS_IN_POOL
public DefaultExecutorServiceFactory()
public ScheduledExecutorService getScheduledExecutorService()
getScheduledExecutorService
in interface ExecutorServiceFactory
public ExecutorService newSingleThreadExecutorService()
newSingleThreadExecutorService
in interface ExecutorServiceFactory
public void shutdown()
shutdown
in interface ExecutorServiceFactory
Copyright © 2012-2019 Pi4J. All Rights Reserved.