Interface PulsarClientService
- All Known Implementing Classes:
PulsarClientServiceImpl
public interface PulsarClientService
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.pulsar.client.api.PulsarClientGets the managed Pulsar Client for the given channel.<T> org.apache.pulsar.client.api.Consumer<T>getConsumer(String channel) 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>getProducer(String channel) 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
Gets the managed Pulsar Consumer for the given channel.- Type Parameters:
T- the type of the value- Parameters:
channel- the channel, must not benull- Returns:
- the consumer,
nullif not found
-
getProducer
Gets the managed Pulsar Producer for the given channel.- Type Parameters:
T- the type of the value- Parameters:
channel- the channel, must not benull- Returns:
- the consumer,
nullif not found
-
getClient
Gets the managed Pulsar Client for the given channel.- Parameters:
channel- the channel, must not benull- Returns:
- the consumer,
nullif not found
-
getConsumerChannels
Get the names of all the Pulsar incoming channels managed by this connector.- Returns:
- the names of the Pulsar consumer incoming channels.
-
getProducerChannels
Get the names of all the Pulsar outgoing channels managed by this connector.- Returns:
- the names of the Pulsar producer outgoing channels.
-