Class OutgoingMessage


  • public class OutgoingMessage
    extends java.lang.Object
    An outgoing message.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected IUdpCallback<java.lang.Boolean> callback
      Result callback.
      protected byte[] data
      Message data.
      protected java.util.Set<java.lang.Long> unconfirmedparts
      Set of unconfirmed parts.
    • Constructor Summary

      Constructors 
      Constructor Description
      OutgoingMessage​(byte[] data, IUdpCallback<java.lang.Boolean> callback)
      Creates a new outgoing message.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clearData()
      Clears the data.
      IUdpCallback<java.lang.Boolean> getCallback()
      Returns the callback.
      byte[] getData()
      Returns the data.
      java.util.Set<java.lang.Long> getUnconfirmedParts()
      Access the unconfirmed parts.
      void setUnconfirmedParts​(java.util.Set<java.lang.Long> unconfirmedparts)
      Sets the unconfirmed parts.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • data

        protected byte[] data
        Message data.
      • unconfirmedparts

        protected java.util.Set<java.lang.Long> unconfirmedparts
        Set of unconfirmed parts.
      • callback

        protected IUdpCallback<java.lang.Boolean> callback
        Result callback.
    • Constructor Detail

      • OutgoingMessage

        public OutgoingMessage​(byte[] data,
                               IUdpCallback<java.lang.Boolean> callback)
        Creates a new outgoing message.
        Parameters:
        data - Data of the message.
        callback - Result callback.
    • Method Detail

      • getUnconfirmedParts

        public java.util.Set<java.lang.Long> getUnconfirmedParts()
        Access the unconfirmed parts.
        Returns:
        Unconfirmed parts.
      • setUnconfirmedParts

        public void setUnconfirmedParts​(java.util.Set<java.lang.Long> unconfirmedparts)
        Sets the unconfirmed parts.
        Parameters:
        unconfirmedparts - Unconfirmed parts.
      • getData

        public byte[] getData()
        Returns the data.
        Returns:
        The data.
      • clearData

        public void clearData()
        Clears the data.
      • getCallback

        public IUdpCallback<java.lang.Boolean> getCallback()
        Returns the callback.
        Returns:
        The callback.