com.sportradar.livedata.sdk.proto.common.RequestProducer 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.
package com.sportradar.livedata.sdk.proto.common;
import com.sportradar.livedata.sdk.proto.dto.OutgoingMessage;
/**
* Represents a class which is capable of producing messages for the betradar server.
*
* @param The type of the requests produced by the current {@link RequestProducer}
*/
public interface RequestProducer {
/**
* Sets the {@link RequestProducerListener} used to observe the current {@link RequestProducer}
*
* @param listener The listener used to observer the current {@link RequestProducer}
*/
void setListener(RequestProducerListener listener);
/**
* Instructs the {@link RequestProducer} to start generating requests.
*/
void start();
/**
* Instructs the {@link RequestProducer} to stop generating requests;
*/
void stop();
}