Class DataTrackOptions.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • ordered

        public DataTrackOptions.Builder ordered​(boolean ordered)
        Ordered transmission of messages. Default is true.
      • maxPacketLifeTime

        public DataTrackOptions.Builder maxPacketLifeTime​(int maxPacketLifeTime)
        Maximum retransmit time in milliseconds.
      • maxRetransmits

        public DataTrackOptions.Builder maxRetransmits​(int maxRetransmits)
        Maximum number of retransmitted messages.
      • build

        public DataTrackOptions build()
        Builds the data track options.

        Max packet life time and max retransmits are mutually exclusive. This means that only one of these values can be set to a non default value at a time otherwise a IllegalStateException occurs.