Class PulsarUtils

java.lang.Object
org.apache.camel.component.pulsar.utils.PulsarUtils

public final class PulsarUtils extends Object
  • 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

      public static void pauseConsumers(Queue<org.apache.pulsar.client.api.Consumer<byte[]>> consumers)
      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

      public static void resumeConsumers(Queue<org.apache.pulsar.client.api.Consumer<byte[]>> consumers)