Object - nats : Message

Represents a message, which will be pushed from the NATS server to the consumer.

Constructor

__init

(string subject, byte content, string replyTo)

  • subject string
  • content byte
  • replyTo string ()

Methods

getData

()

returns byte

Get the message content.

  • Return Type

    (byte)
  • the data returned from the message as a 'byte[]'.

getReplyTo

()

returns string

Get the replyTo subject of the message.

  • Return Type

    (string)
  • replyTo subject value.

getSubject

()

returns string

Get the subject of the message.

  • Return Type

    (string)
  • the subject that this message was sent to.