Uses of Interface
org.apache.camel.PollingConsumer
Package
Description
The core Camel API.
Service Provider Interfaces used by the Camel runtime which are plugin strategies.
-
Uses of PollingConsumer in org.apache.camel
Modifier and TypeMethodDescriptionEndpoint.createPollingConsumer()
Creates a new Polling Consumer so that the caller can poll message exchanges from the consumer usingreceive()
,receiveNoWait()
orreceive(long)
whenever it is ready to do so rather than using the Event Based Consumer returned byEndpoint.createConsumer(Processor)
Important: Do not do any initialization in the constructor of thePollingConsumer
. -
Uses of PollingConsumer in org.apache.camel.spi
Modifier and TypeMethodDescriptionConsumerCache.acquirePollingConsumer
(Endpoint endpoint) Acquires a pooled polling consumer which you must release back again after usage using theConsumerCache.releasePollingConsumer(Endpoint, PollingConsumer)
method.Modifier and TypeMethodDescriptionvoid
ConsumerCache.releasePollingConsumer
(Endpoint endpoint, PollingConsumer pollingConsumer) Releases an acquired polling consumer back after usage.