|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.model.OptionalIdentifiedDefinition<Type>
org.apache.camel.model.ProcessorDefinition<ExpressionNode>
org.apache.camel.model.ExpressionNode
org.apache.camel.model.NoOutputExpressionNode
org.apache.camel.model.RecipientListDefinition<Type>
public class RecipientListDefinition<Type extends ProcessorDefinition<Type>>
Represents an XML <recipientList/> element
| Field Summary |
|---|
| Fields inherited from class org.apache.camel.model.ProcessorDefinition |
|---|
inheritErrorHandler, log |
| Constructor Summary | |
|---|---|
RecipientListDefinition()
|
|
RecipientListDefinition(Expression expression)
|
|
RecipientListDefinition(ExpressionDefinition expression)
|
|
| Method Summary | |
|---|---|
RecipientListDefinition<Type> |
aggregationStrategy(AggregationStrategy aggregationStrategy)
Set the aggregationStrategy |
RecipientListDefinition<Type> |
aggregationStrategyMethodAllowNull()
Sets allowing null when using a POJO as AggregationStrategy. |
RecipientListDefinition<Type> |
aggregationStrategyMethodName(String methodName)
Sets the method name to use when using a POJO as AggregationStrategy. |
RecipientListDefinition<Type> |
aggregationStrategyRef(String aggregationStrategyRef)
Set the aggregationStrategy |
RecipientListDefinition<Type> |
cacheSize(int cacheSize)
Sets the maximum size used by the ProducerCache which is used
to cache and reuse producers when using this recipient list, when uris are reused. |
Processor |
createProcessor(RouteContext routeContext)
Override this in definition class and implement logic to create the processor based on the definition model. |
RecipientListDefinition<Type> |
delimiter(String delimiter)
Set the delimiter |
Type |
end()
Ends the current block |
RecipientListDefinition<Type> |
executorService(ExecutorService executorService)
Setting the executor service for executing |
RecipientListDefinition<Type> |
executorServiceRef(String executorServiceRef)
Setting the executor service for executing |
AggregationStrategy |
getAggregationStrategy()
|
Integer |
getCacheSize()
|
String |
getDelimiter()
|
ExecutorService |
getExecutorService()
Gets the executor service |
String |
getExecutorServiceRef()
Gets the reference to lookup in the Registry for the executor service to be used. |
Boolean |
getIgnoreInvalidEndpoints()
|
String |
getLabel()
Returns a label to describe this node such as the expression if some kind of expression node |
Processor |
getOnPrepare()
|
String |
getOnPrepareRef()
|
Boolean |
getParallelAggregate()
|
Boolean |
getParallelProcessing()
|
Boolean |
getShareUnitOfWork()
|
String |
getShortName()
Returns a short name for this node which can be useful for ID generation or referring to related resources like images |
Boolean |
getStopOnException()
|
Boolean |
getStrategyMethodAllowNull()
|
String |
getStrategyMethodName()
|
String |
getStrategyRef()
|
Boolean |
getStreaming()
|
Long |
getTimeout()
|
RecipientListDefinition<Type> |
ignoreInvalidEndpoints()
Ignore the invalidate endpoint exception when try to create a producer with that endpoint |
boolean |
isIgnoreInvalidEndpoints()
|
boolean |
isParallelAggregate()
Whether to aggregate using a sequential single thread, or allow parallel aggregation. |
boolean |
isParallelProcessing()
|
boolean |
isShareUnitOfWork()
|
boolean |
isStopOnException()
|
boolean |
isStreaming()
|
RecipientListDefinition<Type> |
onPrepare(Processor onPrepare)
Uses the Processor when preparing the Exchange to be used send. |
RecipientListDefinition<Type> |
onPrepareRef(String onPrepareRef)
Uses the Processor when preparing the Exchange to be send. |
RecipientListDefinition<Type> |
parallelAggregate()
Doing the aggregate work in parallel Notice that if enabled, then the AggregationStrategy in use
must be implemented as thread safe, as concurrent threads can call the aggregate methods at the same time. |
RecipientListDefinition<Type> |
parallelProcessing()
Doing the recipient list work in parallel |
void |
setAggregationStrategy(AggregationStrategy aggregationStrategy)
|
void |
setCacheSize(Integer cacheSize)
|
void |
setDelimiter(String delimiter)
|
void |
setExecutorService(ExecutorService executorService)
Sets the executor service to be used. |
void |
setExecutorServiceRef(String executorServiceRef)
Sets a reference to lookup in the Registry for the executor service to be used. |
void |
setIgnoreInvalidEndpoints(Boolean ignoreInvalidEndpoints)
|
void |
setOnPrepare(Processor onPrepare)
|
void |
setOnPrepareRef(String onPrepareRef)
|
void |
setParallelAggregate(Boolean parallelAggregate)
|
void |
setParallelProcessing(Boolean parallelProcessing)
|
void |
setShareUnitOfWork(Boolean shareUnitOfWork)
|
void |
setStopOnException(Boolean stopOnException)
|
void |
setStrategyMethodAllowNull(Boolean strategyMethodAllowNull)
|
void |
setStrategyMethodName(String strategyMethodName)
|
void |
setStrategyRef(String strategyRef)
|
void |
setStreaming(Boolean streaming)
|
void |
setTimeout(Long timeout)
|
RecipientListDefinition<Type> |
shareUnitOfWork()
Shares the UnitOfWork with the parent and each of the sub messages. |
RecipientListDefinition<Type> |
stopOnException()
Will now stop further processing if an exception or failure occurred during processing of an Exchange and the caused exception will be thrown. |
RecipientListDefinition<Type> |
streaming()
Doing the recipient list work in streaming model |
RecipientListDefinition<Type> |
timeout(long timeout)
Sets a timeout value in millis to use when using parallelProcessing. |
String |
toString()
|
| Methods inherited from class org.apache.camel.model.NoOutputExpressionNode |
|---|
addOutput, getOutputs, id, isOutputSupported |
| Methods inherited from class org.apache.camel.model.ExpressionNode |
|---|
configureChild, createFilterProcessor, createPredicate, getExpression, preCreateProcessor, setExpression, setOutputs |
| Methods inherited from class org.apache.camel.model.OptionalIdentifiedDefinition |
|---|
description, description, getDescription, getDescriptionText, getId, hasCustomIdAssigned, idOrCreate, isCustomId, setCustomId, setDescription, setId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RecipientListDefinition()
public RecipientListDefinition(ExpressionDefinition expression)
public RecipientListDefinition(Expression expression)
| Method Detail |
|---|
public String toString()
toString in class Objectpublic String getShortName()
OptionalIdentifiedDefinition
getShortName in interface NamedNodegetShortName in class ExpressionNodepublic String getLabel()
ProcessorDefinition
getLabel in interface NamedNodegetLabel in class ExpressionNode
public Processor createProcessor(RouteContext routeContext)
throws Exception
ProcessorDefinition
createProcessor in class ProcessorDefinition<ExpressionNode>Exceptionpublic Type end()
ProcessorDefinition
end in class ProcessorDefinition<ExpressionNode>public RecipientListDefinition<Type> delimiter(String delimiter)
delimiter - the delimiter
public RecipientListDefinition<Type> aggregationStrategy(AggregationStrategy aggregationStrategy)
aggregationStrategy - the strategy
public RecipientListDefinition<Type> aggregationStrategyRef(String aggregationStrategyRef)
aggregationStrategyRef - a reference to a strategy to lookup
public RecipientListDefinition<Type> aggregationStrategyMethodName(String methodName)
AggregationStrategy.
methodName - the method name to call
public RecipientListDefinition<Type> aggregationStrategyMethodAllowNull()
AggregationStrategy.
public RecipientListDefinition<Type> ignoreInvalidEndpoints()
public RecipientListDefinition<Type> parallelProcessing()
public RecipientListDefinition<Type> parallelAggregate()
AggregationStrategy in use
must be implemented as thread safe, as concurrent threads can call the aggregate methods at the same time.
public RecipientListDefinition<Type> streaming()
public RecipientListDefinition<Type> stopOnException()
Exchange and the caused exception will be thrown.
Will also stop if processing the exchange failed (has a fault message) or an exception
was thrown and handled by the error handler (such as using onException). In all situations
the recipient list will stop further processing. This is the same behavior as in pipeline, which
is used by the routing engine.
The default behavior is to not stop but continue processing till the end
public RecipientListDefinition<Type> executorService(ExecutorService executorService)
ExecutorServiceAwareDefinition
executorService in interface ExecutorServiceAwareDefinition<RecipientListDefinition<Type extends ProcessorDefinition<Type>>>executorService - the executor service
public RecipientListDefinition<Type> executorServiceRef(String executorServiceRef)
ExecutorServiceAwareDefinition
executorServiceRef in interface ExecutorServiceAwareDefinition<RecipientListDefinition<Type extends ProcessorDefinition<Type>>>executorServiceRef - reference for a ExecutorService
to lookup in the Registry
public RecipientListDefinition<Type> onPrepare(Processor onPrepare)
Processor when preparing the Exchange to be used send.
This can be used to deep-clone messages that should be send, or any custom logic needed before
the exchange is send.
onPrepare - the processor
public RecipientListDefinition<Type> onPrepareRef(String onPrepareRef)
Processor when preparing the Exchange to be send.
This can be used to deep-clone messages that should be send, or any custom logic needed before
the exchange is send.
onPrepareRef - reference to the processor to lookup in the Registry
public RecipientListDefinition<Type> timeout(long timeout)
timeout - timeout in millis
public RecipientListDefinition<Type> shareUnitOfWork()
UnitOfWork with the parent and each of the sub messages.
SubUnitOfWorkpublic RecipientListDefinition<Type> cacheSize(int cacheSize)
ProducerCache which is used
to cache and reuse producers when using this recipient list, when uris are reused.
cacheSize - the cache size, use 0 for default cache size, or -1 to turn cache off.
public String getDelimiter()
public void setDelimiter(String delimiter)
public Boolean getParallelProcessing()
public void setParallelProcessing(Boolean parallelProcessing)
public boolean isParallelProcessing()
public String getStrategyRef()
public void setStrategyRef(String strategyRef)
public String getStrategyMethodName()
public void setStrategyMethodName(String strategyMethodName)
public Boolean getStrategyMethodAllowNull()
public void setStrategyMethodAllowNull(Boolean strategyMethodAllowNull)
public String getExecutorServiceRef()
ExecutorServiceAwareRegistry for the executor service to be used.
getExecutorServiceRef in interface ExecutorServiceAwarepublic void setExecutorServiceRef(String executorServiceRef)
ExecutorServiceAwareRegistry for the executor service to be used.
setExecutorServiceRef in interface ExecutorServiceAwareexecutorServiceRef - reference for the executorpublic Boolean getIgnoreInvalidEndpoints()
public void setIgnoreInvalidEndpoints(Boolean ignoreInvalidEndpoints)
public boolean isIgnoreInvalidEndpoints()
public Boolean getStopOnException()
public void setStopOnException(Boolean stopOnException)
public boolean isStopOnException()
public AggregationStrategy getAggregationStrategy()
public void setAggregationStrategy(AggregationStrategy aggregationStrategy)
public ExecutorService getExecutorService()
ExecutorServiceAware
getExecutorService in interface ExecutorServiceAwarepublic void setExecutorService(ExecutorService executorService)
ExecutorServiceAware
setExecutorService in interface ExecutorServiceAwareexecutorService - the executorpublic Boolean getStreaming()
public void setStreaming(Boolean streaming)
public boolean isStreaming()
public Long getTimeout()
public void setTimeout(Long timeout)
public String getOnPrepareRef()
public void setOnPrepareRef(String onPrepareRef)
public Processor getOnPrepare()
public void setOnPrepare(Processor onPrepare)
public Boolean getShareUnitOfWork()
public void setShareUnitOfWork(Boolean shareUnitOfWork)
public boolean isShareUnitOfWork()
public Integer getCacheSize()
public void setCacheSize(Integer cacheSize)
public Boolean getParallelAggregate()
public boolean isParallelAggregate()
AggregationStrategy in use
must be implemented as thread safe, as concurrent threads can call the aggregate methods at the same time.
public void setParallelAggregate(Boolean parallelAggregate)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||