Package org.apache.camel.processor
Class RecipientList
java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.support.AsyncProcessorSupport
org.apache.camel.processor.RecipientList
- All Implemented Interfaces:
AutoCloseable,org.apache.camel.AsyncProcessor,org.apache.camel.Processor,org.apache.camel.Service,org.apache.camel.ShutdownableService,org.apache.camel.spi.ErrorHandlerAware,org.apache.camel.spi.HasId,org.apache.camel.spi.IdAware,org.apache.camel.spi.RouteIdAware,org.apache.camel.StatefulService,org.apache.camel.SuspendableService
public class RecipientList
extends org.apache.camel.support.AsyncProcessorSupport
implements org.apache.camel.spi.IdAware, org.apache.camel.spi.RouteIdAware, org.apache.camel.spi.ErrorHandlerAware
Implements a dynamic Recipient List pattern where the list
of actual endpoints to send a message exchange to are dependent on some dynamic expression.
-
Field Summary
Fields inherited from class org.apache.camel.support.service.BaseService
BUILT, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING -
Constructor Summary
ConstructorsConstructorDescriptionRecipientList(org.apache.camel.CamelContext camelContext) RecipientList(org.apache.camel.CamelContext camelContext, String delimiter) RecipientList(org.apache.camel.CamelContext camelContext, org.apache.camel.Expression expression) RecipientList(org.apache.camel.CamelContext camelContext, org.apache.camel.Expression expression, String delimiter) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voiddoStart()protected voiddoStop()org.apache.camel.AggregationStrategyintorg.apache.camel.spi.EndpointUtilizationStatisticsorg.apache.camel.Processororg.apache.camel.ExpressiongetId()org.apache.camel.Processorlongbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanorg.apache.camel.ProcessornewPipeline(org.apache.camel.CamelContext camelContext, Collection<org.apache.camel.Processor> processors) booleanprocess(org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback) voidsetAggregationStrategy(org.apache.camel.AggregationStrategy aggregationStrategy) voidsetCacheSize(int cacheSize) voidsetErrorHandler(org.apache.camel.Processor errorHandler) voidsetExecutorService(ExecutorService executorService) voidvoidsetIgnoreInvalidEndpoints(boolean ignoreInvalidEndpoints) voidsetOnPrepare(org.apache.camel.Processor onPrepare) voidsetParallelAggregate(boolean parallelAggregate) voidsetParallelProcessing(boolean parallelProcessing) voidsetRouteId(String routeId) voidsetShareUnitOfWork(boolean shareUnitOfWork) voidsetShutdownExecutorService(boolean shutdownExecutorService) voidsetStopOnException(boolean stopOnException) voidsetStreaming(boolean streaming) voidsetSynchronous(boolean synchronous) voidsetTimeout(long timeout) toString()Methods inherited from class org.apache.camel.support.AsyncProcessorSupport
process, processAsyncMethods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doInit, doLifecycleChange, doResume, doSuspend, fail, getInternalLock, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.camel.spi.IdAware
setGeneratedIdMethods inherited from interface org.apache.camel.Service
build, close, init, start, stopMethods inherited from interface org.apache.camel.ShutdownableService
shutdownMethods inherited from interface org.apache.camel.StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspendingMethods inherited from interface org.apache.camel.SuspendableService
isSuspended, resume, suspend
-
Constructor Details
-
RecipientList
public RecipientList(org.apache.camel.CamelContext camelContext) -
RecipientList
-
RecipientList
public RecipientList(org.apache.camel.CamelContext camelContext, org.apache.camel.Expression expression) -
RecipientList
public RecipientList(org.apache.camel.CamelContext camelContext, org.apache.camel.Expression expression, String delimiter)
-
-
Method Details
-
newPipeline
public org.apache.camel.Processor newPipeline(org.apache.camel.CamelContext camelContext, Collection<org.apache.camel.Processor> processors) -
toString
-
getId
- Specified by:
getIdin interfaceorg.apache.camel.spi.HasId
-
setId
- Specified by:
setIdin interfaceorg.apache.camel.spi.IdAware
-
getRouteId
- Specified by:
getRouteIdin interfaceorg.apache.camel.spi.RouteIdAware
-
setRouteId
- Specified by:
setRouteIdin interfaceorg.apache.camel.spi.RouteIdAware
-
setErrorHandler
public void setErrorHandler(org.apache.camel.Processor errorHandler) - Specified by:
setErrorHandlerin interfaceorg.apache.camel.spi.ErrorHandlerAware
-
getErrorHandler
public org.apache.camel.Processor getErrorHandler()- Specified by:
getErrorHandlerin interfaceorg.apache.camel.spi.ErrorHandlerAware
-
process
public boolean process(org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback) - Specified by:
processin interfaceorg.apache.camel.AsyncProcessor
-
getEndpointUtilizationStatistics
public org.apache.camel.spi.EndpointUtilizationStatistics getEndpointUtilizationStatistics() -
doStart
- Overrides:
doStartin classorg.apache.camel.support.service.BaseService- Throws:
Exception
-
doStop
- Overrides:
doStopin classorg.apache.camel.support.service.BaseService- Throws:
Exception
-
doShutdown
- Overrides:
doShutdownin classorg.apache.camel.support.service.BaseService- Throws:
Exception
-
getExpression
public org.apache.camel.Expression getExpression() -
getDelimiter
-
isStreaming
public boolean isStreaming() -
setStreaming
public void setStreaming(boolean streaming) -
isIgnoreInvalidEndpoints
public boolean isIgnoreInvalidEndpoints() -
setIgnoreInvalidEndpoints
public void setIgnoreInvalidEndpoints(boolean ignoreInvalidEndpoints) -
isParallelProcessing
public boolean isParallelProcessing() -
setParallelProcessing
public void setParallelProcessing(boolean parallelProcessing) -
isSynchronous
public boolean isSynchronous() -
setSynchronous
public void setSynchronous(boolean synchronous) -
isParallelAggregate
public boolean isParallelAggregate() -
setParallelAggregate
public void setParallelAggregate(boolean parallelAggregate) -
isStopOnException
public boolean isStopOnException() -
setStopOnException
public void setStopOnException(boolean stopOnException) -
getExecutorService
-
setExecutorService
-
isShutdownExecutorService
public boolean isShutdownExecutorService() -
setShutdownExecutorService
public void setShutdownExecutorService(boolean shutdownExecutorService) -
getAggregationStrategy
public org.apache.camel.AggregationStrategy getAggregationStrategy() -
setAggregationStrategy
public void setAggregationStrategy(org.apache.camel.AggregationStrategy aggregationStrategy) -
getTimeout
public long getTimeout() -
setTimeout
public void setTimeout(long timeout) -
getOnPrepare
public org.apache.camel.Processor getOnPrepare() -
setOnPrepare
public void setOnPrepare(org.apache.camel.Processor onPrepare) -
getCacheSize
public int getCacheSize() -
setCacheSize
public void setCacheSize(int cacheSize)
-