Class TestDelay

  • Direct Known Subclasses:
    TestDelayWithSpeed

    public class TestDelay
    extends Object
    Represents a delay specification for the test server.
    • Field Detail

      • msgNr

        protected final Integer msgNr
      • delay

        protected final org.joda.time.Duration delay
    • Constructor Detail

      • TestDelay

        protected TestDelay​(Integer msgNr,
                            org.joda.time.Duration delay)
    • Method Detail

      • fromDelay

        public static TestDelay fromDelay​(org.joda.time.Duration skip)
        Constructs test delay instance
        Parameters:
        skip - interval to skip
        Returns:
        test delay instance
      • fromMsgNr

        public static TestDelay fromMsgNr​(int msgNr)
        Constructs test delay instance
        Parameters:
        msgNr - msg nr
        Returns:
        test delay instance
      • fromMsgNrAndSkip

        public static TestDelay fromMsgNrAndSkip​(int msgNr,
                                                 org.joda.time.Duration skip)
        Constructs test delay instance
        Parameters:
        msgNr - msg nr
        skip - interval to skip
        Returns:
        test delay instance
      • getDelay

        public org.joda.time.Duration getDelay()
        Gets test skip
        Returns:
        test skip
      • getMsgNr

        public Integer getMsgNr()
        Gets msngr to start with
        Returns:
        starting msgnr