Class PulsarClientServiceImpl
java.lang.Object
io.smallrye.reactive.messaging.pulsar.PulsarClientServiceImpl
- All Implemented Interfaces:
PulsarClientService
@ApplicationScoped
public class PulsarClientServiceImpl
extends Object
implements PulsarClientService
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
PulsarClientServiceImpl
public PulsarClientServiceImpl()
-
-
Method Details
-
getConsumer
Description copied from interface:PulsarClientServiceGets the managed Pulsar Consumer for the given channel.- Specified by:
getConsumerin interfacePulsarClientService- Type Parameters:
T- the type of the value- Parameters:
channel- the channel, must not benull- Returns:
- the consumer,
nullif not found
-
getProducer
Description copied from interface:PulsarClientServiceGets the managed Pulsar Producer for the given channel.- Specified by:
getProducerin interfacePulsarClientService- Type Parameters:
T- the type of the value- Parameters:
channel- the channel, must not benull- Returns:
- the consumer,
nullif not found
-
getClient
Description copied from interface:PulsarClientServiceGets the managed Pulsar Client for the given channel.- Specified by:
getClientin interfacePulsarClientService- Parameters:
channel- the channel, must not benull- Returns:
- the consumer,
nullif not found
-
getConsumerChannels
Description copied from interface:PulsarClientServiceGet the names of all the Pulsar incoming channels managed by this connector.- Specified by:
getConsumerChannelsin interfacePulsarClientService- Returns:
- the names of the Pulsar consumer incoming channels.
-
getProducerChannels
Description copied from interface:PulsarClientServiceGet the names of all the Pulsar outgoing channels managed by this connector.- Specified by:
getProducerChannelsin interfacePulsarClientService- Returns:
- the names of the Pulsar producer outgoing channels.
-