Class DataChannelSender
- Object
-
- DataChannelSender
-
public final class DataChannelSender extends Object
Describes a data channel as the sender to send messages to one or more participants
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
closeSender()
Close the data channelprotected void
finalize()
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.Integer
getChannelId()
Get Data channel idInteger
getMaxMessageSizeInBytes()
Get the max size allowed for a messagevoid
sendMessage(byte[] data)
Sends data messagevoid
setParticipants(List<CommunicationIdentifier> participants)
Update the participants of this data channel
-
-
-
Method Detail
-
finalize
protected void finalize()
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.- Overrides:
finalize
in classObject
-
sendMessage
public void sendMessage(byte[] data)
Sends data message- Parameters:
data
- The list that holds the data of the message to be sent.
-
closeSender
public void closeSender()
Close the data channel
-
getChannelId
public Integer getChannelId()
Get Data channel id
-
getMaxMessageSizeInBytes
public Integer getMaxMessageSizeInBytes()
Get the max size allowed for a message
-
setParticipants
public void setParticipants(List<CommunicationIdentifier> participants)
Update the participants of this data channel- Parameters:
participants
- list of updated participant identifiers
-
-