Uses of Interface
org.apache.camel.Consumer
-
Packages that use Consumer Package Description org.apache.camel The core Camel API.org.apache.camel.spi Service Provider Interfaces used by the Camel runtime which are plugin strategies. -
-
Uses of Consumer in org.apache.camel
Subinterfaces of Consumer in org.apache.camel Modifier and Type Interface Description interfaceBatchConsumerA consumer of a batch of message exchanges from anEndpointinterfacePollingConsumerRepresents a Polling Consumer where the caller polls for messages when it is ready.Methods in org.apache.camel that return Consumer Modifier and Type Method Description ConsumerEndpoint. createConsumer(Processor processor)Creates a new Event Driven Consumer which consumes messages from the endpoint using the given processor Important: Do not do any initialization in the constructor of theConsumer.ConsumerRoute. getConsumer()Gets the inboundConsumer -
Uses of Consumer in org.apache.camel.spi
Methods in org.apache.camel.spi that return Consumer Modifier and Type Method Description ConsumerRestApiConsumerFactory. createApiConsumer(CamelContext camelContext, Processor processor, String contextPath, RestConfiguration configuration, Map<String,Object> parameters)Creates a new REST API Event Driven Consumer, which provides API listing of the REST servicesConsumerRestConsumerFactory. createConsumer(CamelContext camelContext, Processor processor, String verb, String basePath, String uriTemplate, String consumes, String produces, RestConfiguration configuration, Map<String,Object> parameters)Creates a new REST Event Driven Consumer, which consumes messages from the endpoint using the given processorConsumerExchangeFactory. getConsumer()The consumer using this factory.ConsumerRestRegistry.RestService. getConsumer()Gets the consumer of the REST serviceConsumerRouteStartupOrder. getInput()Gets the input to this routeMethods in org.apache.camel.spi with parameters of type Consumer Modifier and Type Method Description voidRestRegistry. addRestService(Consumer consumer, String url, String baseUrl, String basePath, String uriTemplate, String method, String consumes, String produces, String inType, String outType, String routeId, String description)Adds a new REST service to the registry.booleanPollingConsumerPollStrategy. begin(Consumer consumer, Endpoint endpoint)Called when poll is about to beginvoidPollingConsumerPollStrategy. commit(Consumer consumer, Endpoint endpoint, int polledMessages)Called when poll is completed successfullyObjectManagementObjectStrategy. getManagedObjectForConsumer(CamelContext context, Consumer consumer)ObjectNameManagementObjectNameStrategy. getObjectNameForConsumer(CamelContext context, Consumer consumer)ExchangeFactoryExchangeFactory. newExchangeFactory(Consumer consumer)Creates a newExchangeFactorythat is private for the given consumer.voidScheduledPollConsumerScheduler. onInit(Consumer consumer)Initializes thisScheduledPollConsumerSchedulerwith the associatedConsumer.voidRestRegistry. removeRestService(Consumer consumer)Removes the REST service from the registrybooleanPollingConsumerPollStrategy. rollback(Consumer consumer, Endpoint endpoint, int retryCounter, Exception cause)Called when poll failed
-