|
||||||||||
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<Type>
org.apache.camel.model.OutputType<ProcessorType>
org.apache.camel.model.MulticastType
public class MulticastType
Represents an XML <multicast/> element
Field Summary |
---|
Fields inherited from class org.apache.camel.model.OutputType |
---|
outputs |
Fields inherited from class org.apache.camel.model.ProcessorType |
---|
DEFAULT_TRACE_CATEGORY |
Fields inherited from class org.apache.camel.model.OptionalIdentifiedType |
---|
nodeCounters |
Constructor Summary | |
---|---|
MulticastType()
|
Method Summary | |
---|---|
MulticastType |
aggregationStrategy(AggregationStrategy aggregationStrategy)
Set the multicasting aggregationStrategy |
protected Processor |
createCompositeProcessor(RouteContext routeContext,
List<Processor> list)
Creates a new instance of some kind of composite processor which defaults to using a Pipeline but derived classes could change the
behaviour |
Processor |
createProcessor(RouteContext routeContext)
|
MulticastType |
executor(ThreadPoolExecutor executor)
Setting the executor for executing the multicasting 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()
|
MulticastType |
parallelProcessing()
Set to run the multicasting action parallely |
MulticastType |
parallelProcessing(boolean parallelProcessing)
Set the multicasting action's thread model |
void |
setAggregationStrategy(AggregationStrategy aggregationStrategy)
|
void |
setParallelProcessing(boolean parallelProcessing)
|
void |
setThreadPoolExecutor(ThreadPoolExecutor executor)
|
String |
toString()
|
protected Processor |
wrapProcessorInInterceptors(RouteContext routeContext,
Processor target)
A strategy method which allows derived classes to wrap the child processor in some kind of interceptor |
Methods inherited from class org.apache.camel.model.OutputType |
---|
configureChild, getOutputs, 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 MulticastType()
Method Detail |
---|
public String toString()
toString
in class Object
public String getShortName()
OptionalIdentifiedType
getShortName
in class OptionalIdentifiedType<ProcessorType>
public Processor createProcessor(RouteContext routeContext) throws Exception
createProcessor
in class ProcessorType<ProcessorType>
Exception
public MulticastType aggregationStrategy(AggregationStrategy aggregationStrategy)
aggregationStrategy
-
public MulticastType parallelProcessing()
public MulticastType parallelProcessing(boolean parallelProcessing)
parallelProcessing
- true to use a thread pool,
if false then work is done in the calling thread
public MulticastType 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
protected Processor createCompositeProcessor(RouteContext routeContext, List<Processor> list)
ProcessorType
Pipeline
but derived classes could change the
behaviour
createCompositeProcessor
in class ProcessorType<ProcessorType>
public AggregationStrategy getAggregationStrategy()
public void setAggregationStrategy(AggregationStrategy aggregationStrategy)
public boolean isParallelProcessing()
public void setParallelProcessing(boolean parallelProcessing)
public ThreadPoolExecutor getThreadPoolExecutor()
public void setThreadPoolExecutor(ThreadPoolExecutor executor)
protected Processor wrapProcessorInInterceptors(RouteContext routeContext, Processor target) throws Exception
ProcessorType
wrapProcessorInInterceptors
in class ProcessorType<ProcessorType>
target
- the processor which can be wrapped
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |