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.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TestDelay
fromDelay(org.joda.time.Duration skip)
Constructs test delay instancestatic TestDelay
fromMsgNr(int msgNr)
Constructs test delay instancestatic TestDelay
fromMsgNrAndSkip(int msgNr, org.joda.time.Duration skip)
Constructs test delay instanceorg.joda.time.Duration
getDelay()
Gets test skipInteger
getMsgNr()
Gets msngr to start with
-
-
-
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 nrskip
- 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
-
-