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 interface
BatchConsumer
A consumer of a batch of message exchanges from anEndpoint
interface
PollingConsumer
Represents 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 Consumer
Endpoint. 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
.Consumer
Route. 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 Consumer
RestApiConsumerFactory. 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 servicesConsumer
RestConsumerFactory. 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 processorConsumer
ExchangeFactory. getConsumer()
The consumer using this factory.Consumer
RestRegistry.RestService. getConsumer()
Gets the consumer of the REST serviceConsumer
RouteStartupOrder. getInput()
Gets the input to this routeMethods in org.apache.camel.spi with parameters of type Consumer Modifier and Type Method Description void
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
PollingConsumerPollStrategy. begin(Consumer consumer, Endpoint endpoint)
Called when poll is about to beginvoid
PollingConsumerPollStrategy. commit(Consumer consumer, Endpoint endpoint, int polledMessages)
Called when poll is completed successfullyObject
ManagementObjectStrategy. getManagedObjectForConsumer(CamelContext context, Consumer consumer)
ObjectName
ManagementObjectNameStrategy. getObjectNameForConsumer(CamelContext context, Consumer consumer)
ExchangeFactory
ExchangeFactory. newExchangeFactory(Consumer consumer)
Creates a newExchangeFactory
that is private for the given consumer.void
ScheduledPollConsumerScheduler. onInit(Consumer consumer)
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
-