Interface PulsarClientService

All Known Implementing Classes:
PulsarClientServiceImpl

public interface PulsarClientService
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.pulsar.client.api.PulsarClient
    getClient(String channel)
    Gets the managed Pulsar Client for the given channel.
    <T> org.apache.pulsar.client.api.Consumer<T>
    Gets the managed Pulsar Consumer for the given channel.
    Get the names of all the Pulsar incoming channels managed by this connector.
    <T> org.apache.pulsar.client.api.Producer<T>
    Gets the managed Pulsar Producer for the given channel.
    Get the names of all the Pulsar outgoing channels managed by this connector.
  • Method Details

    • getConsumer

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

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

      org.apache.pulsar.client.api.PulsarClient getClient(String channel)
      Gets the managed Pulsar Client for the given channel.
      Parameters:
      channel - the channel, must not be null
      Returns:
      the consumer, null if not found
    • getConsumerChannels

      Set<String> getConsumerChannels()
      Get the names of all the Pulsar incoming channels managed by this connector.
      Returns:
      the names of the Pulsar consumer incoming channels.
    • getProducerChannels

      Set<String> getProducerChannels()
      Get the names of all the Pulsar outgoing channels managed by this connector.
      Returns:
      the names of the Pulsar producer outgoing channels.