Class DataChannelReceiver
- Object
- 
- DataChannelReceiver
 
- 
 public final class DataChannelReceiver extends ObjectDescribes the data channel as a receiver to process the incoming data messages
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddOnClosedListener(PropertyChangedListener listener)Adds the specified listener to receive OnClosed events.voidaddOnMessageReceivedListener(PropertyChangedListener listener)Adds the specified listener to receive OnMessageReceived events.protected 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 idCommunicationIdentifiergetSenderIdentifier()Get participant identifier of the senderDataChannelMessagereceiveMessage()Fetch data message from the data channelvoidremoveOnClosedListener(PropertyChangedListener listener)Removes the specified listener to receive OnClosed events.voidremoveOnMessageReceivedListener(PropertyChangedListener listener)Removes the specified listener to receive OnMessageReceived events.
 
- 
- 
- 
Method Detail- 
finalizeprotected 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 class- Object
 
 - 
addOnMessageReceivedListenerpublic void addOnMessageReceivedListener(PropertyChangedListener listener) Adds the specified listener to receive OnMessageReceived events. Occurs when a data channel message is ready
 - 
removeOnMessageReceivedListenerpublic void removeOnMessageReceivedListener(PropertyChangedListener listener) Removes the specified listener to receive OnMessageReceived events. Occurs when a data channel message is ready
 - 
addOnClosedListenerpublic void addOnClosedListener(PropertyChangedListener listener) Adds the specified listener to receive OnClosed events. Occurs when a data channel is notified to close
 - 
removeOnClosedListenerpublic void removeOnClosedListener(PropertyChangedListener listener) Removes the specified listener to receive OnClosed events. Occurs when a data channel is notified to close
 - 
receiveMessagepublic DataChannelMessage receiveMessage() Fetch data message from the data channel
 - 
getChannelIdpublic Integer getChannelId() Get Data channel id
 - 
getSenderIdentifierpublic CommunicationIdentifier getSenderIdentifier() Get participant identifier of the sender
 
- 
 
-