Class: NATS::JetStream::PubAck

Inherits:
Struct
  • Object
show all
Defined in:
lib/nats/io/js.rb

Overview

PubAck is the API response from a successfully published message.

Instance Attribute Summary collapse

Instance Method Summary collapse

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.



66
# File 'lib/nats/io/js.rb', line 66

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.



66
# File 'lib/nats/io/js.rb', line 66

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.



66
# File 'lib/nats/io/js.rb', line 66

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.



66
# File 'lib/nats/io/js.rb', line 66

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