Class ReliableUnicast.Entry

    • Field Detail

      • conn_id

        protected final short conn_id
      • timestamp

        protected final java.util.concurrent.atomic.AtomicLong timestamp
      • send_ack

        protected final java.util.concurrent.atomic.AtomicBoolean send_ack
      • acks_sent

        protected final java.util.concurrent.atomic.AtomicInteger acks_sent
    • Constructor Detail

      • Entry

        protected Entry​(short conn_id,
                        Buffer<Message> buf)
    • Method Detail

      • connId

        public short connId()
      • update

        protected void update()
      • age

        protected long age()
      • needToSendAck

        protected boolean needToSendAck()
      • update

        public boolean update​(int num_acks,
                              java.util.function.IntBinaryOperator op)
        Returns true if a real ACK should be sent. This is based on num_acks_sent being > ack_threshold