Class 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 channel
      protected 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 id
      Integer getMaxMessageSizeInBytes()
      Get the max size allowed for a message
      void sendMessage​(byte[] data)
      Sends data message
      void setParticipants​(List<CommunicationIdentifier> participants)
      Update the participants of this data channel
      • Methods inherited from class Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 class Object
      • 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