Uses of Interface
org.apache.camel.Consumer
Package
Description
The core Camel API.
Service Provider Interfaces used by the Camel runtime which are plugin strategies.
-
Uses of Consumer in org.apache.camel
Modifier and TypeInterfaceDescriptioninterface
A consumer of a batch of message exchanges from anEndpoint
interface
Represents a Polling Consumer where the caller polls for messages when it is ready.Modifier and TypeMethodDescriptionEndpoint.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
.Route.getConsumer()
Gets the inboundConsumer
-
Uses of Consumer in org.apache.camel.spi
Modifier and TypeMethodDescriptionRestApiConsumerFactory.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 servicesRestConsumerFactory.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 processorExchangeFactory.getConsumer()
The consumer using this factory.RestRegistry.RestService.getConsumer()
Gets the consumer of the REST serviceRouteStartupOrder.getInput()
Gets the input to this routeModifier and TypeMethodDescriptionvoid
RestRegistry.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.boolean
Called when poll is about to beginvoid
Called when poll is completed successfullyManagementObjectStrategy.getManagedObjectForConsumer
(CamelContext context, Consumer consumer) ManagementObjectNameStrategy.getObjectNameForConsumer
(CamelContext context, Consumer consumer) ExchangeFactory.newExchangeFactory
(Consumer consumer) Creates a newExchangeFactory
that is private for the given consumer.void
Initializes thisScheduledPollConsumerScheduler
with the associatedConsumer
.void
RestRegistry.removeRestService
(Consumer consumer) Removes the REST service from the registryboolean
PollingConsumerPollStrategy.rollback
(Consumer consumer, Endpoint endpoint, int retryCounter, Exception cause) Called when poll failed