Пример #1
0
 internal TopicWriter(Topic topic, Func <PublisherAck, CancellationToken, Task> ackHandler, TopicWriterOptions topicWriterOptions)
 {
     this.topic      = topic;
     this.ackHandler = ackHandler;
     confirmationIntervalMilliseconds = topicWriterOptions.ConfirmationIntervalMilliseconds;
     lastAckedMessageId      = -1;
     cancellationTokenSource = new CancellationTokenSource();
     idMap = new InfiniteArray <IdPair>(0, new InfiniteArrayOptions
     {
         MinimumFreeBlocks = 4,
         DataListCapacity  = 128,
         BlockLength       = 10000
     });
 }
Пример #2
0
 public TopicWriterOptions(TopicWriterOptions options)
 {
     ConfirmationIntervalMilliseconds = options.ConfirmationIntervalMilliseconds;
 }