Class PulsarUtils
java.lang.Object
org.apache.camel.component.pulsar.utils.PulsarUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidpauseConsumers(Queue<org.apache.pulsar.client.api.Consumer<byte[]>> consumers) Pauses the Pulsar consumers.static voidresumeConsumers(Queue<org.apache.pulsar.client.api.Consumer<byte[]>> consumers) static Queue<org.apache.pulsar.client.api.Consumer<byte[]>>stopConsumers(Queue<org.apache.pulsar.client.api.Consumer<byte[]>> consumers) static Queue<ExecutorService>stopExecutors(org.apache.camel.spi.ExecutorServiceManager executorServiceManager, Queue<ExecutorService> executors)
-
Method Details
-
stopExecutors
public static Queue<ExecutorService> stopExecutors(org.apache.camel.spi.ExecutorServiceManager executorServiceManager, Queue<ExecutorService> executors) -
stopConsumers
public static Queue<org.apache.pulsar.client.api.Consumer<byte[]>> stopConsumers(Queue<org.apache.pulsar.client.api.Consumer<byte[]>> consumers) throws org.apache.pulsar.client.api.PulsarClientException - Throws:
org.apache.pulsar.client.api.PulsarClientException
-
pauseConsumers
Pauses the Pulsar consumers. Once paused, a Pulsar consumer does not request any more messages from the broker. However, it will still receive as many messages as it had already requested, which is equal to at most `consumerQueueSize`. -
resumeConsumers
-