public abstract class DataTrack extends Object implements Track
LocalDataTrack
and RemoteDataTrack
.Modifier | Constructor and Description |
---|---|
protected |
DataTrack(boolean enabled,
boolean ordered,
boolean reliable,
int maxPacketLifeTime,
int maxRetransmits,
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.
|
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, String name)
public boolean isEnabled()
public 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.4.4.0