Object - nats : Message

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

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)
  • The subject the client is expected to send a reply message on.

getSubject

()

returns string

Get the subject of the message.

  • Return Type

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