Class PulsarSinkBuilder<E,M>

java.lang.Object
com.hazelcast.jet.pulsar.PulsarSinkBuilder<E,M>
Type Parameters:
E - the type of stream item
M - the type of the message published by PulsarProducer
All Implemented Interfaces:
Serializable

public final class PulsarSinkBuilder<E,M> extends Object implements Serializable
See Also:
  • Constructor Details

    • PulsarSinkBuilder

      public PulsarSinkBuilder(@Nonnull SupplierEx<org.apache.pulsar.client.api.Schema<M>> schemaSupplier, @Nonnull FunctionEx<? super E,M> extractValueFn)
    • PulsarSinkBuilder

      public PulsarSinkBuilder(@Nonnull String topic, @Nonnull SupplierEx<org.apache.pulsar.client.api.PulsarClient> connectionSupplier, @Nonnull SupplierEx<org.apache.pulsar.client.api.Schema<M>> schemaSupplier, @Nonnull FunctionEx<? super E,M> extractValueFn)
      Required fields of Pulsar sink
      Parameters:
      topic - Pulsar topic name to publish to
      connectionSupplier - Pulsar client supplier
      extractValueFn - extracts the message value from the emitted items.
      schemaSupplier - Pulsar messaging schema supplier.
  • Method Details