Esempio n. 1
0
 public OrderedMessageManager(JetStream js, string stream, ConsumerConfiguration serverCc, bool syncMode)
 {
     _js                 = js;
     _stream             = stream;
     _serverCc           = serverCc;
     _syncMode           = syncMode;
     lastStreamSeq       = ulong.MaxValue;
     expectedConsumerSeq = 1; // always starts at 1
 }
Esempio n. 2
0
        internal JetStreamAbstractSyncSubscription(Connection conn, string subject, string queue,
                                                   JetStream js, string stream, string consumer, string deliver, MessageManager[] messageManagers)
            : base(conn, subject, queue)
        {
            Context        = js;
            Stream         = stream;
            Consumer       = consumer; // might be null, someone will call set on ConsumerName
            DeliverSubject = deliver;

            this.messageManagers = messageManagers;
            MessageManager.Startup(this, messageManagers);
        }
Esempio n. 3
0
 internal JetStreamPullSubscription(Connection conn, string subject,
                                    JetStream js, string stream, string consumer, string deliver,
                                    MessageManager[] messageManagers)
     : base(conn, subject, null, js, stream, consumer, deliver, messageManagers)
 {
 }