public abstract class DataTrack extends java.lang.Object implements Track
LocalDataTrack
and RemoteDataTrack
.Modifier | Constructor and Description |
---|---|
protected |
DataTrack(boolean enabled,
boolean ordered,
boolean reliable,
int maxPacketLifeTime,
int maxRetransmits,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
int |
getMaxPacketLifeTime()
Returns the maximum period of time in milliseconds in which retransmissions will be sent.
|
int |
getMaxRetransmits()
Returns the maximum number of times to transmit a message before giving up.
|
java.lang.String |
getName()
Returns the data track name.
|
boolean |
isEnabled()
Check if this data track is enabled.
|
boolean |
isOrdered()
Returns true if data track guarantees in-order delivery of messages.
|
boolean |
isReliable()
Returns true if the data track guarantees reliable transmission of messages.
|
protected DataTrack(boolean enabled, boolean ordered, boolean reliable, int maxPacketLifeTime, int maxRetransmits, @NonNull java.lang.String name)
public boolean isEnabled()
@NonNull public java.lang.String getName()
public boolean isOrdered()
public boolean isReliable()
public int getMaxPacketLifeTime()
65535
if DataTrackOptions.DEFAULT_MAX_PACKET_LIFE_TIME
was specified
when building the data track.public int getMaxRetransmits()
65535
if DataTrackOptions.DEFAULT_MAX_RETRANSMITS
was specified when building the
data track.6.4.1