Class: NATS::JetStream::API::SequenceInfo
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/nats-pure-2.2.1/lib/nats/io/jetstream/api.rb
Overview
SequenceInfo is a pair of consumer and stream sequence and last activity.
Instance Attribute Summary collapse
-
#consumer_seq ⇒ Integer
The consumer sequence.
-
#last_active ⇒ Object
Returns the value of attribute last_active.
-
#stream_seq ⇒ Integer
The stream sequence.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ SequenceInfo
constructor
A new instance of SequenceInfo.
Methods inherited from Struct
Constructor Details
#initialize(opts = {}) ⇒ SequenceInfo
Returns a new instance of SequenceInfo.
33 34 35 36 37 38 39 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/nats-pure-2.2.1/lib/nats/io/jetstream/api.rb', line 33 def initialize(opts={}) # Filter unrecognized fields and freeze. rem = opts.keys - members opts.delete_if { |k| rem.include?(k) } super(opts) freeze end |
Instance Attribute Details
#consumer_seq ⇒ Integer
Returns The consumer sequence.
31 32 33 34 35 36 37 38 39 40 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/nats-pure-2.2.1/lib/nats/io/jetstream/api.rb', line 31 SequenceInfo = Struct.new(:consumer_seq, :stream_seq, :last_active, keyword_init: true) do def initialize(opts={}) # Filter unrecognized fields and freeze. rem = opts.keys - members opts.delete_if { |k| rem.include?(k) } super(opts) freeze end end |
#last_active ⇒ Object
Returns the value of attribute last_active
31 32 33 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/nats-pure-2.2.1/lib/nats/io/jetstream/api.rb', line 31 def last_active @last_active end |
#stream_seq ⇒ Integer
Returns The stream sequence.
31 32 33 34 35 36 37 38 39 40 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/nats-pure-2.2.1/lib/nats/io/jetstream/api.rb', line 31 SequenceInfo = Struct.new(:consumer_seq, :stream_seq, :last_active, keyword_init: true) do def initialize(opts={}) # Filter unrecognized fields and freeze. rem = opts.keys - members opts.delete_if { |k| rem.include?(k) } super(opts) freeze end end |