Class: NATS::JetStream::PubAck

Inherits:
Struct show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/nats-pure-2.2.1/lib/nats/io/jetstream.rb

Overview

PubAck is the API response from a successfully published message.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Struct

#as_json

Instance Attribute Details

#streamString (readonly)

Returns Name of the stream that processed the published message.

Returns:

  • (String)

    Name of the stream that processed the published message.



71
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/nats-pure-2.2.1/lib/nats/io/jetstream.rb', line 71

PubAck = Struct.new(:stream, :seq, :duplicate, :domain, keyword_init: true)

Instance Method Details

#domain=(value) ⇒ String

Returns JetStream Domain that processed the ack response.

Returns:

  • (String)

    JetStream Domain that processed the ack response.



71
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/nats-pure-2.2.1/lib/nats/io/jetstream.rb', line 71

PubAck = Struct.new(:stream, :seq, :duplicate, :domain, keyword_init: true)

#duplicate=(value) ⇒ Boolean

Returns Indicates whether the published message is a duplicate.

Returns:

  • (Boolean)

    Indicates whether the published message is a duplicate.



71
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/nats-pure-2.2.1/lib/nats/io/jetstream.rb', line 71

PubAck = Struct.new(:stream, :seq, :duplicate, :domain, keyword_init: true)

#seq=(value) ⇒ Fixnum

Returns Sequence of the message in the stream.

Returns:

  • (Fixnum)

    Sequence of the message in the stream.



71
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/nats-pure-2.2.1/lib/nats/io/jetstream.rb', line 71

PubAck = Struct.new(:stream, :seq, :duplicate, :domain, keyword_init: true)