
com.sportradar.livedata.sdk.feed.common.TestDelayWithSpeed Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk Show documentation
Show all versions of sdk Show documentation
Livedata SDK is a client library that enables easier integration with the Livedata XML feed.
SDK exposes XML feed service interface in a more user-friendly way and isolates the client from having to do
XML feed parsing, proper connection handling, error recovery, event queuing and dispatching.
It also makes a client solution more stable and robust when it comes to feed handling,
especially with the release of new and updated XML feed versions.
/***************************************************************
* Copyright (c) 2013, Sportradar AG *
***************************************************************/
package com.sportradar.livedata.sdk.feed.common;
import org.joda.time.Duration;
/**
* Represents a delay specification for the test server together with some speed.
*/
public class TestDelayWithSpeed extends TestDelay {
protected TestDelayWithSpeed(Integer msgNr, Duration delay) {
super(msgNr, delay);
}
/**
* Constructs test delay instance
* @param msgNr msgnr to start the test with
* @param speed speed with which messages should be send
* @return test delay instance
*/
public static TestDelayWithSpeed fromMsgNrWithSpeed(final int msgNr, final Duration speed) {
return new TestDelayWithSpeed(msgNr, speed);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy