Class DataChannelSender
- Object
-
- DataChannelSender
-
public final class DataChannelSender extends ObjectDescribes 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 voidcloseSender()Close the data channelprotected voidfinalize()Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.IntegergetChannelId()Get Data channel idIntegergetMaxMessageSizeInBytes()Get the max size allowed for a messagevoidsendMessage(byte[] data)Sends data messagevoidsetParticipants(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:
finalizein 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
-
-