Class OutputConnectionHandler.DataSendInfo

  • Enclosing class:
    OutputConnectionHandler

    public class OutputConnectionHandler.DataSendInfo
    extends java.lang.Object
    Info about a sent but not yet acknowledged data message.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected Future<java.lang.Void> fut
      The future.
      protected long lastsend
      The sequence number during the last sending.
      protected StreamPacket task
      The task.
      protected java.util.TimerTask timer
      The timer.
      protected int tries
      The try count.
    • Field Detail

      • fut

        protected Future<java.lang.Void> fut
        The future.
      • tries

        protected int tries
        The try count.
      • timer

        protected java.util.TimerTask timer
        The timer.
      • lastsend

        protected long lastsend
        The sequence number during the last sending.
    • Constructor Detail

      • DataSendInfo

        public DataSendInfo​(StreamPacket task)
        Create a send info.
    • Method Detail

      • getSequenceNumber

        public int getSequenceNumber()
        Get the sequence number.
      • getFuture

        public Future<java.lang.Void> getFuture()
        Get the future.
      • retry

        public StreamPacket retry()
        Retry sending the message.
        Returns:
        task The task for resend.
      • doResend

        public void doResend()
        Called when the message should be resent.
      • checkResend

        public void checkResend()
        Check, if the message should be resent.