Class AbstractConnectionHandler.SendInfo

  • Enclosing class:
    AbstractConnectionHandler

    public static class AbstractConnectionHandler.SendInfo
    extends java.lang.Object
    Struct class that holds send information.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.Object id
      The id.
      protected Future<java.lang.Object> result
      The result future of the call.
      protected StreamPacket task
      The send task.
      protected java.util.TimerTask timer
      The timer for triggering resends.
      protected int trycnt
      The number of timer this task has been executed.
    • Constructor Summary

      Constructors 
      Constructor Description
      SendInfo​(StreamPacket task, java.lang.Object id, int trycnt, java.util.TimerTask timer, Future<java.lang.Object> result)
      Create a new send info.
    • Field Detail

      • id

        protected java.lang.Object id
        The id.
      • trycnt

        protected int trycnt
        The number of timer this task has been executed.
      • timer

        protected java.util.TimerTask timer
        The timer for triggering resends.
      • result

        protected Future<java.lang.Object> result
        The result future of the call.
    • Constructor Detail

      • SendInfo

        public SendInfo​(StreamPacket task,
                        java.lang.Object id,
                        int trycnt,
                        java.util.TimerTask timer,
                        Future<java.lang.Object> result)
        Create a new send info.
    • Method Detail

      • getTask

        public StreamPacket getTask()
        Get the task.
        Returns:
        the task.
      • setTask

        public void setTask​(StreamPacket task)
        Set the task.
        Parameters:
        task - The task to set.
      • getId

        public java.lang.Object getId()
        Get the id.
        Returns:
        the id.
      • setId

        public void setId​(java.lang.Object id)
        Set the id.
        Parameters:
        id - The id to set.
      • getTryCnt

        public int getTryCnt()
        Get the trycnt.
        Returns:
        the trycnt.
      • setTryCnt

        public void setTryCnt​(int trycnt)
        Set the trycnt.
        Parameters:
        trycnt - The trycnt to set.
      • getTimer

        public java.util.TimerTask getTimer()
        Get the timer.
        Returns:
        the timer.
      • setTimer

        public void setTimer​(java.util.TimerTask timer)
        Set the timer.
        Parameters:
        timer - The timer to set.
      • getResult

        public Future<java.lang.Object> getResult()
        Get the result.
        Returns:
        the result.
      • setResult

        public void setResult​(Future<java.lang.Object> result)
        Set the result.
        Parameters:
        result - The result to set.