Class ProcessorEndpoint

  • All Implemented Interfaces:
    AutoCloseable, org.apache.camel.CamelContextAware, org.apache.camel.Endpoint, org.apache.camel.IsSingleton, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.HasId, org.apache.camel.StatefulService, org.apache.camel.SuspendableService
    Direct Known Subclasses:
    ResourceEndpoint

    public class ProcessorEndpoint
    extends DefaultPollingEndpoint
    An endpoint which allows exchanges to be sent into it which just invokes a given Processor. This component does not support the use of consumers.


    Implementors beware that this endpoint creates producers and consumers which do not allow full control of their lifecycle as Service or SuspendableService would do. If your producers/consumers need more control over their lifecycle it is advised instead to extend DefaultEndpoint, DefaultProducer and DefaultConsumer.

    • Constructor Detail

      • ProcessorEndpoint

        protected ProcessorEndpoint()
      • ProcessorEndpoint

        public ProcessorEndpoint​(String endpointUri,
                                 org.apache.camel.CamelContext context,
                                 org.apache.camel.Processor processor)
      • ProcessorEndpoint

        public ProcessorEndpoint​(String endpointUri,
                                 org.apache.camel.Component component,
                                 org.apache.camel.Processor processor)
      • ProcessorEndpoint

        protected ProcessorEndpoint​(String endpointUri,
                                    org.apache.camel.Component component)
    • Method Detail

      • createProducer

        public org.apache.camel.Producer createProducer()
                                                 throws Exception
        Throws:
        Exception
      • getProcessor

        public org.apache.camel.Processor getProcessor()
                                                throws Exception
        Throws:
        Exception
      • setProcessor

        public void setProcessor​(org.apache.camel.Processor processor)
      • createProcessor

        protected org.apache.camel.Processor createProcessor()
                                                      throws Exception
        Throws:
        Exception
      • onExchange

        protected void onExchange​(org.apache.camel.Exchange exchange)
                           throws Exception
        Throws:
        Exception