Class TestDelay

java.lang.Object
com.sportradar.livedata.sdk.feed.common.TestDelay
Direct Known Subclasses:
TestDelayWithSpeed

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

    • msgNr

      protected final Integer msgNr
    • delay

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

    • TestDelay

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

    • 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