Uses of Interface
org.apache.camel.Consumer
Packages that use Consumer
-
Uses of Consumer in org.apache.camel
Subinterfaces of Consumer in org.apache.camelModifier and TypeInterfaceDescriptioninterfaceinterfaceAPollingConsumerused by the dynamicpollandpollEnrichEIPs, allowing the component to use data from the currentExchange(such as headers or properties) to parameterise the poll operation at runtime.interfaceRepresents a Polling Consumer where the caller polls for messages when it is ready.Methods in org.apache.camel that return ConsumerModifier 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
Methods in org.apache.camel.spi that return ConsumerModifier 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, @Nullable String uriTemplate, @Nullable String consumes, @Nullable String produces, RestConfiguration configuration, Map<String, Object> parameters) Creates a new REST Event Driven Consumer, which consumes messages from the endpoint using the given processorRestOpenApiConsumerFactory.createConsumer(CamelContext camelContext, Processor processor, String contextPath, RestConfiguration configuration, Map<String, Object> parameters) Creates a new REST Event Driven Consumer, which consumes messages from the endpoint using the given processor@Nullable ConsumerExchangeFactory.getConsumer()The consumer using this factory.RestRegistry.RestService.getConsumer()Gets the consumer of the REST serviceRouteStartupOrder.getInput()Gets the input to this routeMethods in org.apache.camel.spi with parameters of type ConsumerModifier and TypeMethodDescriptionvoidRestRegistry.addRestService(Consumer consumer, boolean contractFirst, String url, String baseUrl, String basePath, @Nullable String uriTemplate, String method, @Nullable String consumes, @Nullable String produces, @Nullable String inType, @Nullable String outType, String routeId, @Nullable String operationId, @Nullable String specificationUri, @Nullable String description) Adds a new REST service to the registry.voidRestRegistry.addRestSpecification(Consumer consumer, boolean contractFirst, String url, String baseUrl, String basePath, String method, @Nullable String produces, @Nullable String description) Adds information about the API specification (ie api-doc)booleanCalled when poll is about to beginvoidCalled when poll is completed successfullyManagementObjectStrategy.getManagedObjectForConsumer(CamelContext context, Consumer consumer) ManagementObjectNameStrategy.getObjectNameForConsumer(CamelContext context, Consumer consumer) ExchangeFactory.newExchangeFactory(Consumer consumer) Creates a newExchangeFactorythat is private for the given consumer.voidInitializes 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