public class DataChannelOption extends Object
Constructor and Description |
---|
DataChannelOption()
Default option parameter for the data channel of a call.
|
Modifier and Type | Method and Description |
---|---|
int |
getId()
Gets the ID for the channel.
|
int |
getMaxRetransmits()
Gets the maximum number of times to try and retransmit a failed message.
|
int |
getMaxRetransmitTimeMs()
Gets the maximum time to try and retransmit a failed message.
|
String |
getProtocol()
Gets the protocol to be used for the data channel.
|
boolean |
isNegotiated()
Gets the negotiated value for the data channel.
|
boolean |
isOrdered()
Returns true if the data channel can guarantee order or not.
|
void |
setId(int id)
Allows you to provide your own ID for the channel.
|
void |
setMaxRetransmits(int maxRetransmits)
Sets the maximum number of times to try and retransmit a failed message.
|
void |
setMaxRetransmitTimeMs(int maxRetransmitTimeMs)
Sets the maximum retransmit time to try and retransmit a failed message.
|
void |
setNegotiated(boolean negotiated)
Sets the negotiated value.
|
void |
setOrdered(boolean ordered)
Set to true if the data channel should guarantee order or not.
|
void |
setProtocol(String protocol)
Sets the protocol to be used for the data channel.
|
public DataChannelOption()
public boolean isOrdered()
public void setOrdered(boolean ordered)
ordered
- flag to guarantee orderpublic int getMaxRetransmitTimeMs()
public void setMaxRetransmitTimeMs(int maxRetransmitTimeMs)
maxRetransmitTimeMs
- maximum retransmit time in milli-seconds.public int getMaxRetransmits()
public void setMaxRetransmits(int maxRetransmits)
maxRetransmits
- maximum retransmits.public String getProtocol()
public void setProtocol(String protocol)
protocol
- protocol valuepublic boolean isNegotiated()
public void setNegotiated(boolean negotiated)
negotiated
- negotiated valuepublic int getId()
public void setId(int id)
id
- ID for data channel