All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sportradar.livedata.sdk.proto.common.RequestProducer Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 2.0.10
Show newest version
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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy