Package com.twilio.video
Class DataTrackOptions.Builder
java.lang.Object
com.twilio.video.DataTrackOptions.Builder
- Enclosing class:
- DataTrackOptions
Build new
DataTrackOptions
.
All methods are optional.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the data track options.maxPacketLifeTime
(int maxPacketLifeTime) Maximum retransmit time in milliseconds.maxRetransmits
(int maxRetransmits) Maximum number of retransmitted messages.Data track name.ordered
(boolean ordered) Ordered transmission of messages.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ordered
Ordered transmission of messages. Default istrue
. -
maxPacketLifeTime
Maximum retransmit time in milliseconds. -
maxRetransmits
Maximum number of retransmitted messages. -
name
Data track name. -
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.
-