Package com.hazelcast.jet.pulsar
Class PulsarReaderBuilder<M,T>
java.lang.Object
com.hazelcast.jet.pulsar.PulsarReaderBuilder<M,T>
- Type Parameters:
M- the type of the message read bypulsarReaderT- the type of data emitted fromStreamSource
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPulsarReaderBuilder(String topic, SupplierEx<org.apache.pulsar.client.api.PulsarClient> connectionSupplier, SupplierEx<org.apache.pulsar.client.api.Schema<M>> schemaSupplier, FunctionEx<org.apache.pulsar.client.api.Message<M>, T> projectionFn) Required fields of Pulsar reader -
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates and returns the Pulsar ReaderStreamSourcewith using builder configurations set before.readerConfig(Map<String, Object> readerConfig)
-
Constructor Details
-
PulsarReaderBuilder
public PulsarReaderBuilder(@Nonnull String topic, @Nonnull SupplierEx<org.apache.pulsar.client.api.PulsarClient> connectionSupplier, @Nonnull SupplierEx<org.apache.pulsar.client.api.Schema<M>> schemaSupplier, @Nonnull FunctionEx<org.apache.pulsar.client.api.Message<M>, T> projectionFn) Required fields of Pulsar reader- Parameters:
topic- Pulsar topic name to consume fromconnectionSupplier- Pulsar client supplierschemaSupplier- Pulsar messaging schema supplier.projectionFn- converts a Pulsar message to an emitted item.
-
-
Method Details
-
readerConfig
- Parameters:
readerConfig- Pulsar reader configurations that must contain reader name
-
build
Creates and returns the Pulsar ReaderStreamSourcewith using builder configurations set before.
-