public class ExecutorsImpl extends Object implements IExecutors
Constructor and Description |
---|
ExecutorsImpl() |
ExecutorsImpl(ExecutorService createExecutor,
ExecutorService buildExecutor,
ScheduledThreadPoolExecutor deleteExecutor,
ScheduledExecutorService scheduledExecutor) |
Modifier and Type | Method and Description |
---|---|
ExecutorService |
getBuildExecutor()
Returns a build executor from the pool of build executors.
|
ExecutorService |
getFileCreateExecutor()
Returns an executor used for asynchronously creating files.
|
ScheduledExecutorService |
getFileDeleteExecutor()
Returns a scheduled executor that will execute submitted tasks after a
delay determined by
IOptions.getDeleteDelay() . |
ScheduledExecutorService |
getScheduledExecutor()
Returns a scheduled executor service that fires on a periodic interval.
|
void |
shutdown()
Shuts down the executor services.
|
public ExecutorsImpl()
public ExecutorsImpl(ExecutorService createExecutor, ExecutorService buildExecutor, ScheduledThreadPoolExecutor deleteExecutor, ScheduledExecutorService scheduledExecutor)
public void shutdown()
IExecutors
shutdown
in interface IExecutors
public ExecutorService getBuildExecutor()
IExecutors
getBuildExecutor
in interface IExecutors
public ScheduledExecutorService getScheduledExecutor()
IExecutors
getScheduledExecutor
in interface IExecutors
public ScheduledExecutorService getFileDeleteExecutor()
IExecutors
IOptions.getDeleteDelay()
.getFileDeleteExecutor
in interface IExecutors
public ExecutorService getFileCreateExecutor()
IExecutors
getFileCreateExecutor
in interface IExecutors
Copyright © 2011-2015 IBM. All Rights Reserved.