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

com.sportradar.unifiedodds.sdk.impl.processing.pipeline.NoOpProcessedFixtureChangesTracker Maven / Gradle / Ivy

package com.sportradar.unifiedodds.sdk.impl.processing.pipeline;

import com.google.inject.Inject;
import com.sportradar.uf.datamodel.UFFixtureChange;

/**
 * Created on 2019-03-29
 *
 * @author e.roznik
 */
public class NoOpProcessedFixtureChangesTracker implements ProcessedFixtureChangesTracker {

    @Inject
    NoOpProcessedFixtureChangesTracker() {
        // empty
    }

    /**
     * Checks if the received fixture change was already processed and returns an indication about the processed state.
     * The underlying implementation needs to "remember" which fixture changes come in, so it won't return incorrect indications.
     *
     * @param fixtureChange the fixture change that needs to be checked
     * @return if the fixture wasn't processed yet, the result is false, otherwise true
     */
    @Override
    public boolean onFixtureChangeReceived(UFFixtureChange fixtureChange) {
        // fixture change check is already being performed on the session level,
        // no need for this precise monitoring in normal ops mode
        return false;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy