Class 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.
    • Constructor Detail

      • RecipientList

        public RecipientList​(org.apache.camel.CamelContext camelContext)
      • RecipientList

        public RecipientList​(org.apache.camel.CamelContext camelContext,
                             String delimiter)
      • 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 Detail

      • newPipeline

        public org.apache.camel.Processor newPipeline​(org.apache.camel.CamelContext camelContext,
                                                      Collection<org.apache.camel.Processor> processors)
      • getId

        public String getId()
        Specified by:
        getId in interface org.apache.camel.spi.HasId
      • setId

        public void setId​(String id)
        Specified by:
        setId in interface org.apache.camel.spi.IdAware
      • getRouteId

        public String getRouteId()
        Specified by:
        getRouteId in interface org.apache.camel.spi.RouteIdAware
      • setRouteId

        public void setRouteId​(String routeId)
        Specified by:
        setRouteId in interface org.apache.camel.spi.RouteIdAware
      • setErrorHandler

        public void setErrorHandler​(org.apache.camel.Processor errorHandler)
        Specified by:
        setErrorHandler in interface org.apache.camel.spi.ErrorHandlerAware
      • getErrorHandler

        public org.apache.camel.Processor getErrorHandler()
        Specified by:
        getErrorHandler in interface org.apache.camel.spi.ErrorHandlerAware
      • process

        public boolean process​(org.apache.camel.Exchange exchange,
                               org.apache.camel.AsyncCallback callback)
        Specified by:
        process in interface org.apache.camel.AsyncProcessor
      • getEndpointUtilizationStatistics

        public org.apache.camel.spi.EndpointUtilizationStatistics getEndpointUtilizationStatistics()
      • doStart

        protected void doStart()
                        throws Exception
        Overrides:
        doStart in class org.apache.camel.support.AsyncProcessorSupport
        Throws:
        Exception
      • doStop

        protected void doStop()
                       throws Exception
        Overrides:
        doStop in class org.apache.camel.support.AsyncProcessorSupport
        Throws:
        Exception
      • doShutdown

        protected void doShutdown()
                           throws Exception
        Overrides:
        doShutdown in class org.apache.camel.support.service.BaseService
        Throws:
        Exception
      • getExpression

        public org.apache.camel.Expression getExpression()
      • getDelimiter

        public String 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)
      • isParallelAggregate

        public boolean isParallelAggregate()
      • setParallelAggregate

        public void setParallelAggregate​(boolean parallelAggregate)
      • isStopOnException

        public boolean isStopOnException()
      • setStopOnException

        public void setStopOnException​(boolean stopOnException)
      • setExecutorService

        public void setExecutorService​(ExecutorService executorService)
      • 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)
      • isShareUnitOfWork

        public boolean isShareUnitOfWork()
      • setShareUnitOfWork

        public void setShareUnitOfWork​(boolean shareUnitOfWork)
      • getCacheSize

        public int getCacheSize()
      • setCacheSize

        public void setCacheSize​(int cacheSize)