Class DataTrackOptions.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • ordered

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

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

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

        @NonNull
        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.