|
||||||||||
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<ProcessorDefinition>
org.apache.camel.model.ThreadDefinition
public class ThreadDefinition
Represents an XML <thread/> element
Field Summary |
---|
Fields inherited from class org.apache.camel.model.OptionalIdentifiedType |
---|
nodeCounters |
Constructor Summary | |
---|---|
ThreadDefinition()
|
|
ThreadDefinition(Executor executor)
|
|
ThreadDefinition(int coreSize)
|
Method Summary | |
---|---|
protected void |
configureChild(ProcessorDefinition output)
|
ThreadDefinition |
coreSize(int coreSize)
Sets the core size |
Processor |
createProcessor(RouteContext routeContext)
|
ThreadDefinition |
daemon(boolean daemon)
Sets the deamon option |
ProcessorDefinition |
errorHandler(ErrorHandlerBuilder errorHandlerBuilder)
Installs the given error handler builder. |
ThreadDefinition |
executor(Executor executor)
Sets the execute to use |
Executor |
getExecutor()
|
List<ProcessorDefinition> |
getOutputs()
|
String |
getShortName()
Returns a short name for this node which can be useful for ID generation or referring to related resources like images |
ThreadDefinition |
keepAliveTime(long keepAliveTime)
Sets the keep alive time |
ThreadDefinition |
maxSize(int maxSize)
Sets the max pool size |
ThreadDefinition |
name(String name)
Sets the thread pool name |
ThreadDefinition |
priority(int priority)
Sets the thread pool priority |
void |
setCoreSize(int coreSize)
|
void |
setDaemon(boolean daemon)
|
void |
setExecutor(Executor executor)
|
void |
setKeepAliveTime(long keepAliveTime)
|
void |
setMaxSize(int maxSize)
|
void |
setName(String name)
|
void |
setPriority(int priority)
|
void |
setStackSize(long stackSize)
|
void |
setTaskQueue(BlockingQueue<Runnable> taskQueue)
|
void |
setThreadGroup(ThreadGroup threadGroup)
|
ThreadDefinition |
stackSize(long stackSize)
Sets the thread pool stack size |
ThreadDefinition |
taskQueue(BlockingQueue<Runnable> taskQueue)
Sets the task queue |
ThreadDefinition |
threadGroup(ThreadGroup threadGroup)
Sets the thread group |
String |
toString()
|
Methods inherited from class org.apache.camel.model.OptionalIdentifiedType |
---|
createId, description, getDescription, getId, getNodeCounter, idOrCreate, setDescription, setId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ThreadDefinition()
public ThreadDefinition(int coreSize)
public ThreadDefinition(Executor executor)
Method Detail |
---|
public List<ProcessorDefinition> getOutputs()
getOutputs
in class ProcessorDefinition<ProcessorDefinition>
public String toString()
toString
in class Object
public String getShortName()
OptionalIdentifiedType
getShortName
in class OptionalIdentifiedType<ProcessorDefinition>
public Processor createProcessor(RouteContext routeContext) throws Exception
createProcessor
in class ProcessorDefinition<ProcessorDefinition>
Exception
protected void configureChild(ProcessorDefinition output)
configureChild
in class ProcessorDefinition<ProcessorDefinition>
public ProcessorDefinition errorHandler(ErrorHandlerBuilder errorHandlerBuilder)
ProcessorDefinition
errorHandler
in class ProcessorDefinition<ProcessorDefinition>
errorHandlerBuilder
- the error handler to be used by default for all child routes
public ThreadDefinition coreSize(int coreSize)
coreSize
- the core size
public ThreadDefinition daemon(boolean daemon)
daemon
- deamon option
public ThreadDefinition keepAliveTime(long keepAliveTime)
keepAliveTime
- keep alive time in millis
public ThreadDefinition maxSize(int maxSize)
maxSize
- the max pool size
public ThreadDefinition name(String name)
name
- the name
public ThreadDefinition priority(int priority)
priority
- the priority
public ThreadDefinition stackSize(long stackSize)
stackSize
- the stack size
public ThreadDefinition taskQueue(BlockingQueue<Runnable> taskQueue)
taskQueue
- the task queue
public ThreadDefinition threadGroup(ThreadGroup threadGroup)
threadGroup
- the thread group
public ThreadDefinition executor(Executor executor)
executor
- the executor
public void setCoreSize(int coreSize)
public void setDaemon(boolean daemon)
public void setKeepAliveTime(long keepAliveTime)
public void setMaxSize(int maxSize)
public void setName(String name)
public void setPriority(int priority)
public void setStackSize(long stackSize)
public void setTaskQueue(BlockingQueue<Runnable> taskQueue)
public void setThreadGroup(ThreadGroup threadGroup)
public Executor getExecutor()
public void setExecutor(Executor executor)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |