-
- All Implemented Interfaces:
-
com.twilio.video.Track
public abstract class DataTrack implements Track
Base representation of LocalDataTrack and RemoteDataTrack.
-
-
Field Summary
Fields Modifier and Type Field Description private final intmaxPacketLifeTimeprivate final intmaxRetransmitsprivate final Stringname
-
Method Summary
Modifier and Type Method Description intgetMaxPacketLifeTime()Returns the maximum period of time in milliseconds in which retransmissions will be sent. intgetMaxRetransmits()Returns the maximum number of times to transmit a message before giving up. StringgetName()Returns the data track name. booleanisEnabled()Check if this data track is enabled. booleanisOrdered()Returns true if data track guarantees in-order delivery of messages. booleanisReliable()Returns true if the data track guarantees reliable transmission of messages. -
-
Method Detail
-
getMaxPacketLifeTime
int getMaxPacketLifeTime()
Returns the maximum period of time in milliseconds in which retransmissions will be sent.Returns
{@code 65535}if DEFAULT_MAX_PACKET_LIFE_TIME was specifiedwhen building the data track.
-
getMaxRetransmits
int getMaxRetransmits()
Returns the maximum number of times to transmit a message before giving up. Returns
{@code * 65535}if DEFAULT_MAX_RETRANSMITS was specified when building thedata track.
-
getName
@NonNull() String getName()
Returns the data track name. A pseudo random string is returned if no track name wasspecified.
-
isEnabled
boolean isEnabled()
Check if this data track is enabled.
-
isOrdered
boolean isOrdered()
Returns true if data track guarantees in-order delivery of messages.
-
isReliable
boolean isReliable()
Returns true if the data track guarantees reliable transmission of messages.
-
-
-
-