|
||||||||||
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.ProcessorType<ProcessorType>
org.apache.camel.model.ExpressionNode
org.apache.camel.model.SplitterType
public class SplitterType
Represents an XML <splitter/> element
Field Summary |
---|
Fields inherited from class org.apache.camel.model.ProcessorType |
---|
DEFAULT_TRACE_CATEGORY |
Fields inherited from class org.apache.camel.model.OptionalIdentifiedType |
---|
nodeCounters |
Constructor Summary | |
---|---|
SplitterType()
|
|
SplitterType(Expression expression)
|
|
SplitterType(ExpressionType expression)
|
Method Summary | |
---|---|
SplitterType |
aggregationStrategy(AggregationStrategy aggregationStrategy)
Set the spliter's aggregationStrategy |
Processor |
createProcessor(RouteContext routeContext)
|
SplitterType |
executor(ThreadPoolExecutor executor)
Setting the executor for executing the splitting action. |
AggregationStrategy |
getAggregationStrategy()
|
String |
getShortName()
Returns a short name for this node which can be useful for ID generation or referring to related resources like images |
ThreadPoolExecutor |
getThreadPoolExecutor()
|
boolean |
isParallelProcessing()
|
boolean |
isStreaming()
The splitter should use streaming -- exchanges are being sent as the data for them becomes available. |
SplitterType |
parallelProcessing()
Set to run the splitting action parallelly |
SplitterType |
parallelProcessing(boolean parallelProcessing)
Set the splitting action's thread model |
void |
setAggregationStrategy(AggregationStrategy aggregationStrategy)
|
void |
setParallelProcessing(boolean parallelProcessing)
|
void |
setStreaming(boolean streaming)
|
void |
setThreadPoolExecutor(ThreadPoolExecutor threadPoolExecutor)
|
SplitterType |
streaming()
Enables streaming. |
String |
toString()
|
Methods inherited from class org.apache.camel.model.ExpressionNode |
---|
configureChild, createFilterProcessor, getExpression, getLabel, getOutputs, setExpression, setOutputs |
Methods inherited from class org.apache.camel.model.OptionalIdentifiedType |
---|
createId, describe, description, description, getDescription, getId, getNodeCounter, id, idOrCreate, setDescription, setId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SplitterType()
public SplitterType(Expression expression)
public SplitterType(ExpressionType expression)
Method Detail |
---|
public String toString()
toString
in class Object
public String getShortName()
OptionalIdentifiedType
getShortName
in class ExpressionNode
public Processor createProcessor(RouteContext routeContext) throws Exception
createProcessor
in class ProcessorType<ProcessorType>
Exception
public SplitterType aggregationStrategy(AggregationStrategy aggregationStrategy)
aggregationStrategy
-
public SplitterType parallelProcessing()
public SplitterType parallelProcessing(boolean parallelProcessing)
parallelProcessing
- true to use a thread pool,
if false then work is done in the calling thread.
public SplitterType streaming()
setStreaming(boolean)
for more information
public SplitterType executor(ThreadPoolExecutor executor)
executor
- , it should be a instance of ThreadPoolExcutor
NOTE in Camel 2.0 , it will change to use the instance which implements Executor interface
public AggregationStrategy getAggregationStrategy()
public void setAggregationStrategy(AggregationStrategy aggregationStrategy)
public boolean isParallelProcessing()
public void setParallelProcessing(boolean parallelProcessing)
public boolean isStreaming()
Splitter.SPLIT_SIZE
header property
public void setStreaming(boolean streaming)
public ThreadPoolExecutor getThreadPoolExecutor()
public void setThreadPoolExecutor(ThreadPoolExecutor threadPoolExecutor)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |