|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.model.OptionalIdentifiedDefinition
org.apache.camel.model.ProcessorDefinition<ExpressionNode>
org.apache.camel.model.ExpressionNode
org.apache.camel.model.SplitDefinition
public class SplitDefinition
Represents an XML <split/> element
Field Summary |
---|
Fields inherited from class org.apache.camel.model.ProcessorDefinition |
---|
errorHandlerBuilder, errorHandlerRef, log |
Constructor Summary | |
---|---|
SplitDefinition()
|
|
SplitDefinition(Expression expression)
|
|
SplitDefinition(ExpressionDefinition expression)
|
Method Summary | |
---|---|
SplitDefinition |
aggregationStrategy(AggregationStrategy aggregationStrategy)
Set the aggregationStrategy |
Processor |
createProcessor(RouteContext routeContext)
|
SplitDefinition |
executorService(ExecutorService executorService)
Setting the executor service for executing the splitting action. |
ExpressionClause<SplitDefinition> |
expression()
Set the expression that the splitter will use |
AggregationStrategy |
getAggregationStrategy()
|
ExecutorService |
getExecutorService()
|
String |
getLabel()
Returns a label to describe this node such as the expression if some kind of expression node |
String |
getShortName()
Returns a short name for this node which can be useful for ID generation or referring to related resources like images |
boolean |
isParallelProcessing()
|
Boolean |
isStopOnException()
|
boolean |
isStreaming()
The splitter should use streaming -- exchanges are being sent as the data for them becomes available. |
SplitDefinition |
parallelProcessing()
Doing the splitting work in parallel |
SplitDefinition |
parallelProcessing(boolean parallelProcessing)
Deprecated. use #parallelProcessing instead |
void |
setAggregationStrategy(AggregationStrategy aggregationStrategy)
|
void |
setExecutorService(ExecutorService executorService)
|
void |
setParallelProcessing(boolean parallelProcessing)
|
void |
setStopOnException(Boolean stopOnException)
|
void |
setStreaming(boolean streaming)
|
SplitDefinition |
stopOnException()
Will now stop further processing if an exception occurred during processing of an Exchange and the caused exception will be thrown. |
SplitDefinition |
streaming()
Enables streaming. |
String |
toString()
|
Methods inherited from class org.apache.camel.model.ExpressionNode |
---|
createFilterProcessor, getExpression, getOutputs, setExpression, setOutputs |
Methods inherited from class org.apache.camel.model.OptionalIdentifiedDefinition |
---|
description, getDescription, getId, hasCustomIdAssigned, idOrCreate, setDescription, setId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SplitDefinition()
public SplitDefinition(Expression expression)
public SplitDefinition(ExpressionDefinition expression)
Method Detail |
---|
public String toString()
toString
in class Object
public String getShortName()
OptionalIdentifiedDefinition
getShortName
in class ExpressionNode
public String getLabel()
ProcessorDefinition
getLabel
in class ExpressionNode
public Processor createProcessor(RouteContext routeContext) throws Exception
createProcessor
in class ProcessorDefinition<ExpressionNode>
Exception
public ExpressionClause<SplitDefinition> expression()
public SplitDefinition aggregationStrategy(AggregationStrategy aggregationStrategy)
public SplitDefinition parallelProcessing()
@Deprecated public SplitDefinition parallelProcessing(boolean parallelProcessing)
parallelProcessing
- true to use a thread pool, if false then work is done in the
calling thread.
public SplitDefinition streaming()
setStreaming(boolean)
for more information
public SplitDefinition stopOnException()
Exchange
and the caused exception will be thrown.
The default behavior is to not stop but continue processing till the end
public SplitDefinition executorService(ExecutorService executorService)
executorService
- the executor service
public AggregationStrategy getAggregationStrategy()
public void setAggregationStrategy(AggregationStrategy aggregationStrategy)
public boolean isParallelProcessing()
public void setParallelProcessing(boolean parallelProcessing)
public boolean isStreaming()
Exchange.SPLIT_SIZE
header property
public void setStreaming(boolean streaming)
public Boolean isStopOnException()
public void setStopOnException(Boolean stopOnException)
public ExecutorService getExecutorService()
public void setExecutorService(ExecutorService executorService)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |