Package com.twilio.video
Class DataTrackOptions.Builder
- java.lang.Object
-
- com.twilio.video.DataTrackOptions.Builder
-
- Enclosing class:
- DataTrackOptions
public static class DataTrackOptions.Builder extends java.lang.Object
Build newDataTrackOptions
.All methods are optional.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataTrackOptions
build()
Builds the data track options.DataTrackOptions.Builder
maxPacketLifeTime(int maxPacketLifeTime)
Maximum retransmit time in milliseconds.DataTrackOptions.Builder
maxRetransmits(int maxRetransmits)
Maximum number of retransmitted messages.DataTrackOptions.Builder
name(java.lang.String name)
Data track name.DataTrackOptions.Builder
ordered(boolean ordered)
Ordered transmission of messages.
-
-
-
Method Detail
-
ordered
@NonNull public DataTrackOptions.Builder ordered(boolean ordered)
Ordered transmission of messages. Default istrue
.
-
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.
-
name
@NonNull public DataTrackOptions.Builder name(@Nullable java.lang.String name)
Data track name.
-
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.
-
-