Class CreateMessage.Builder

  • Enclosing class:
    CreateMessage

    public abstract static class CreateMessage.Builder
    extends Object
    • Field Detail

      • ttl

        protected int ttl
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • ttl

        public CreateMessage.Builder ttl​(int ttl)
        Parameters:
        ttl - The time-to-live of the message in seconds. The ttl attribute specifies how long the server waits before marking the message as expired and removing it from the queue. The valid range of values for the ttl are configurable by your cloud provider. Consult your cloud provider documentation to learn the valid range.

        Note that the server might not actually delete the message until its age has reached up to (ttl + 60) seconds, to allow for flexibility in storage implementations.
      • body

        public CreateMessage.Builder body​(String json)
        Parameters:
        json - Specifies an arbitrary JSON document that constitutes the body of the message being sent. The size of the message allowed in one message is configurable by your cloud provider. Consult your cloud provider documentation to learn the valid range.