ai.promoted.delivery.client.Sampler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deliveryclient Show documentation
Show all versions of deliveryclient Show documentation
A Java Client to contact the Promoted.ai Delivery API.
package ai.promoted.delivery.client;
/**
* Algorithms that let us choose a subset of SDK traffic to process.
*/
public interface Sampler {
/**
* Simple random sampling that selects below the given threshold.
* @param threshold the sampling percentage in the range [0, 1].
* @return true if we should sample in, false if we should sample out.
*/
boolean sampleRandom(float threshold);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy