public class RunnableChannelExecutor extends ThreadPoolExecutor implements Process, org.springframework.beans.factory.BeanNameAware
ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy| Constructor and Description |
|---|
RunnableChannelExecutor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterExecute(Runnable r,
Throwable t) |
void |
closeChannels() |
void |
execute(Runnable command) |
String |
getBeanName() |
List<Channel<Runnable>> |
getChannels() |
ProcessNetwork |
getProcessNetwork() |
void |
init() |
void |
postRun() |
protected void |
preRun() |
void |
run() |
void |
setBeanName(String beanName) |
void |
setChannels(List<Channel<Runnable>> channels) |
void |
setProcessNetwork(ProcessNetwork processNetwork) |
void |
stop() |
String |
toString() |
allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, beforeExecute, finalize, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getQueue, getRejectedExecutionHandler, getTaskCount, getThreadFactory, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setCorePoolSize, setKeepAliveTime, setMaximumPoolSize, setRejectedExecutionHandler, setThreadFactory, shutdown, shutdownNow, terminatedinvokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submitprotected void afterExecute(Runnable r, Throwable t)
afterExecute in class ThreadPoolExecutorpublic void closeChannels()
public void execute(Runnable command)
execute in interface Executorexecute in class ThreadPoolExecutorpublic String getBeanName()
getBeanName in interface Processpublic ProcessNetwork getProcessNetwork()
getProcessNetwork in interface Process@PostConstruct public void init()
public void postRun()
protected void preRun()
public void setBeanName(String beanName)
setBeanName in interface org.springframework.beans.factory.BeanNameAwarepublic void setProcessNetwork(ProcessNetwork processNetwork)
setProcessNetwork in interface ProcessprocessNetwork - the processNetwork to set@PreDestroy public void stop()
public String toString()
toString in class ThreadPoolExecutorCopyright © 2015 Revolution Systems Inc.. All rights reserved.