Class DISCARD_PAYLOAD


  • public class DISCARD_PAYLOAD
    extends Protocol
    Discards a message whose sequence number (in the payload, as a Long) matches seqno 2 times, before passing it down. Used for unit testing of OOB messages
    Author:
    Bela Ban
    • Field Detail

      • seqno

        protected long seqno
      • duplicate

        protected long duplicate
      • num_discards

        protected int num_discards
    • Constructor Detail

      • DISCARD_PAYLOAD

        public DISCARD_PAYLOAD()
    • Method Detail

      • down

        public java.lang.Object down​(Message msg)
        Description copied from class: Protocol
        A message is sent down the stack. Protocols may examine the message and do something (e.g. add a header) with it before passing it down.
        Overrides:
        down in class Protocol