code: public void setDeliveryDelay(long deliveryDelay) {
          if (deliveryDelay < 0 || deliveryDelay > MAXIMUM_DELIVERY_DELAY_MILLISECONDS) {
              throw new IllegalArgumentException("Delivery delay must be non-negative and at most 15 minutes: " + deliveryDelay);
          }
          if (deliveryDelay % 1000 != 0) {
              throw new IllegalArgumentException("Delivery delay must be a multiple of 1000: " + deliveryDelay);
          }
          this.deliveryDelaySeconds = (int)(deliveryDelay / 1000);
      }
docs: Sets the minimum length of time in milliseconds that must elapse after a
  message is sent before the JMS provider may deliver the message to a consumer.
  <p>
  This must be a multiple of 1000, since SQS only supports delivery delays
  in seconds.