Class PulsarClientServiceImpl

java.lang.Object
io.smallrye.reactive.messaging.pulsar.PulsarClientServiceImpl
All Implemented Interfaces:
PulsarClientService

@ApplicationScoped public class PulsarClientServiceImpl extends Object implements PulsarClientService
  • Constructor Details

    • PulsarClientServiceImpl

      public PulsarClientServiceImpl()
  • Method Details

    • getConsumer

      public <T> org.apache.pulsar.client.api.Consumer<T> getConsumer(String channel)
      Description copied from interface: PulsarClientService
      Gets the managed Pulsar Consumer for the given channel.
      Specified by:
      getConsumer in interface PulsarClientService
      Type Parameters:
      T - the type of the value
      Parameters:
      channel - the channel, must not be null
      Returns:
      the consumer, null if not found
    • getProducer

      public <T> org.apache.pulsar.client.api.Producer<T> getProducer(String channel)
      Description copied from interface: PulsarClientService
      Gets the managed Pulsar Producer for the given channel.
      Specified by:
      getProducer in interface PulsarClientService
      Type Parameters:
      T - the type of the value
      Parameters:
      channel - the channel, must not be null
      Returns:
      the consumer, null if not found
    • getClient

      public org.apache.pulsar.client.api.PulsarClient getClient(String channel)
      Description copied from interface: PulsarClientService
      Gets the managed Pulsar Client for the given channel.
      Specified by:
      getClient in interface PulsarClientService
      Parameters:
      channel - the channel, must not be null
      Returns:
      the consumer, null if not found
    • getConsumerChannels

      public Set<String> getConsumerChannels()
      Description copied from interface: PulsarClientService
      Get the names of all the Pulsar incoming channels managed by this connector.
      Specified by:
      getConsumerChannels in interface PulsarClientService
      Returns:
      the names of the Pulsar consumer incoming channels.
    • getProducerChannels

      public Set<String> getProducerChannels()
      Description copied from interface: PulsarClientService
      Get the names of all the Pulsar outgoing channels managed by this connector.
      Specified by:
      getProducerChannels in interface PulsarClientService
      Returns:
      the names of the Pulsar producer outgoing channels.