|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.model.OptionalIdentifiedType<Type>
org.apache.camel.model.ProcessorDefinition<Type>
org.apache.camel.model.OutputDefinition<ProcessorDefinition>
org.apache.camel.model.ThreadsDefinition
public class ThreadsDefinition
Represents an XML <threads/> element
| Field Summary |
|---|
| Fields inherited from class org.apache.camel.model.OutputDefinition |
|---|
outputs |
| Fields inherited from class org.apache.camel.model.OptionalIdentifiedType |
|---|
nodeCounters |
| Constructor Summary | |
|---|---|
ThreadsDefinition()
|
|
| Method Summary | |
|---|---|
Processor |
createProcessor(RouteContext routeContext)
|
ThreadsDefinition |
executorService(ExecutorService executorService)
Setting the executor service for executing the multicasting action. |
ExecutorService |
getExecutorService()
|
String |
getLabel()
Returns a label to describe this node such as the expression if some kind of expression node |
Integer |
getPoolSize()
|
String |
getShortName()
Returns a short name for this node which can be useful for ID generation or referring to related resources like images |
WaitForTaskToComplete |
getWaitForTaskToComplete()
|
ThreadsDefinition |
poolSize(int poolSize)
Setting the core pool size for the underlying ExecutorService. |
void |
setExecutorService(ExecutorService executorService)
|
void |
setPoolSize(Integer poolSize)
|
void |
setWaitForTaskToComplete(WaitForTaskToComplete waitForTaskToComplete)
|
String |
toString()
|
ThreadsDefinition |
waitForTaskToComplete(WaitForTaskToComplete wait)
Setting to whether to wait for async tasks to be complete before continuing original route. |
| Methods inherited from class org.apache.camel.model.OutputDefinition |
|---|
getOutputs, setOutputs |
| Methods inherited from class org.apache.camel.model.OptionalIdentifiedType |
|---|
createId, description, getDescription, getId, getNodeCounter, hasCustomIdAssigned, idOrCreate, setDescription, setId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ThreadsDefinition()
| Method Detail |
|---|
public Processor createProcessor(RouteContext routeContext)
throws Exception
createProcessor in class ProcessorDefinition<ProcessorDefinition>Exceptionpublic String getLabel()
ProcessorDefinition
getLabel in class ProcessorDefinition<ProcessorDefinition>public String getShortName()
OptionalIdentifiedType
getShortName in class OptionalIdentifiedType<ProcessorDefinition>public String toString()
toString in class Objectpublic ThreadsDefinition executorService(ExecutorService executorService)
public ThreadsDefinition poolSize(int poolSize)
ExecutorService.
public ThreadsDefinition waitForTaskToComplete(WaitForTaskToComplete wait)
wait - the wait option
public ExecutorService getExecutorService()
public void setExecutorService(ExecutorService executorService)
public Integer getPoolSize()
public void setPoolSize(Integer poolSize)
public WaitForTaskToComplete getWaitForTaskToComplete()
public void setWaitForTaskToComplete(WaitForTaskToComplete waitForTaskToComplete)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||