|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.impl.ServiceSupport
org.apache.camel.processor.MulticastProcessor
public class MulticastProcessor
Implements the Multicast pattern to send a message exchange to a number of endpoints, each endpoint receiving a copy of the message exchange.
| Constructor Summary | |
|---|---|
MulticastProcessor(Collection<Endpoint> endpoints)
|
|
| Method Summary | ||
|---|---|---|
protected Exchange |
copyExchangeStrategy(Producer producer,
Exchange exchange)
Strategy method to copy the exchange before sending to another endpoint. |
|
protected void |
doStart()
|
|
protected void |
doStop()
|
|
Collection<Endpoint> |
getEndpoints()
Returns the list of endpoints |
|
Collection<Producer> |
getProducers()
Returns the producers to multicast to |
|
void |
process(Exchange exchange)
Processes the message exchange |
|
static
|
toProducers(Collection<Endpoint> endpoints)
A helper method to convert a list of endpoints into a list of processors |
|
String |
toString()
|
|
| Methods inherited from class org.apache.camel.impl.ServiceSupport |
|---|
isStarted, isStopped, isStopping, start, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MulticastProcessor(Collection<Endpoint> endpoints)
throws Exception
Exception| Method Detail |
|---|
public static <E extends Exchange> Collection<Producer> toProducers(Collection<Endpoint> endpoints)
throws Exception
Exceptionpublic String toString()
toString in class Object
public void process(Exchange exchange)
throws Exception
Processor
process in interface ProcessorException - if an internal processing error has occurred.
protected void doStop()
throws Exception
doStop in class ServiceSupportException
protected void doStart()
throws Exception
doStart in class ServiceSupportExceptionpublic Collection<Producer> getProducers()
public Collection<Endpoint> getEndpoints()
protected Exchange copyExchangeStrategy(Producer producer,
Exchange exchange)
Pipeline will not clone the exchange
producer - the producer that will send the exchangeexchange - @return the current exchange if no copying is required such as for a pipeline otherwise a new copy of the exchange is returned.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||