Exemplo n.º 1
0
 public ProducerBuilder(IPulsarClient pulsarClient, ISchema <TMessage> schema)
 {
     _pulsarClient      = pulsarClient;
     _schema            = schema;
     _compressionType   = ProducerOptions <TMessage> .DefaultCompressionType;
     _initialSequenceId = ProducerOptions <TMessage> .DefaultInitialSequenceId;
 }
Exemplo n.º 2
0
 public ReaderBuilder(IPulsarClient pulsarClient, ISchema <TMessage> schema)
 {
     _pulsarClient         = pulsarClient;
     _schema               = schema;
     _messagePrefetchCount = ReaderOptions <TMessage> .DefaultMessagePrefetchCount;
     _readCompacted        = ReaderOptions <TMessage> .DefaultReadCompacted;
 }
Exemplo n.º 3
0
 public ConsumerBuilder(IPulsarClient pulsarClient)
 {
     _pulsarClient         = pulsarClient;
     _initialPosition      = ConsumerOptions.DefaultInitialPosition;
     _priorityLevel        = ConsumerOptions.DefaultPriorityLevel;
     _messagePrefetchCount = ConsumerOptions.DefaultMessagePrefetchCount;
     _readCompacted        = ConsumerOptions.DefaultReadCompacted;
     _subscriptionType     = ConsumerOptions.DefaultSubscriptionType;
 }
Exemplo n.º 4
0
 public ProducerBuilder(IPulsarClient pulsarClient)
 {
     _pulsarClient      = pulsarClient;
     _initialSequenceId = ProducerOptions.DefaultInitialSequenceId;
 }
 /// <summary>
 /// Configure connection and authentication information about the Azure Service Bus usage
 /// within this Jasper application
 /// </summary>
 /// <param name="endpoints"></param>
 /// <param name="configure"></param>
 public static void ConfigurePulsar(this IEndpoints endpoints, IPulsarClient client)
 {
     endpoints.ConfigurePulsar(_ => { _.PulsarClient = client; });
 }
 /// <summary>
 /// Get a builder that can be used to configure and build a Reader instance.
 /// </summary>
 public static IReaderBuilder NewReader(this IPulsarClient pulsarClient)
 => new ReaderBuilder(pulsarClient);
 /// <summary>
 /// Get a builder that can be used to configure and build a Consumer instance.
 /// </summary>
 public static IConsumerBuilder NewConsumer(this IPulsarClient pulsarClient)
 => new ConsumerBuilder(pulsarClient);
 /// <summary>
 /// Get a builder that can be used to configure and build a Producer instance.
 /// </summary>
 public static IProducerBuilder NewProducer(this IPulsarClient pulsarClient)
 => new ProducerBuilder(pulsarClient);
Exemplo n.º 9
0
 public ReaderBuilder(IPulsarClient pulsarClient)
 {
     _pulsarClient         = pulsarClient;
     _messagePrefetchCount = ReaderOptions.DefaultMessagePrefetchCount;
     _readCompacted        = ReaderOptions.DefaultReadCompacted;
 }
Exemplo n.º 10
0
 /// <summary>
 /// Get a builder that can be used to configure and build a Reader instance.
 /// </summary>
 public static IReaderBuilder <TMessage> NewReader <TMessage>(this IPulsarClient pulsarClient, ISchema <TMessage> schema)
 => new ReaderBuilder <TMessage>(pulsarClient, schema);
Exemplo n.º 11
0
 /// <summary>
 /// Get a builder that can be used to configure and build a Reader instance.
 /// </summary>
 public static IReaderBuilder <ReadOnlySequence <byte> > NewReader(this IPulsarClient pulsarClient)
 => new ReaderBuilder <ReadOnlySequence <byte> >(pulsarClient, Schema.ByteSequence);