public class ImpressionsManager extends Object implements TreatmentLog, Runnable, Closeable
TreatmentLog.NoopTreatmentLog| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static ImpressionsManager |
instance(org.apache.http.impl.client.CloseableHttpClient client,
SplitClientConfig config) |
static ImpressionsManager |
instanceForTest(org.apache.http.impl.client.CloseableHttpClient client,
SplitClientConfig config,
ImpressionsSender impressionsSender) |
void |
log(String key,
String bucketingKey,
String feature,
String treatment,
long time,
String label)
Logs the fact that a 'key' saw 'treatment' at 'time' for 'name'.
|
void |
run() |
public static ImpressionsManager instance(org.apache.http.impl.client.CloseableHttpClient client, SplitClientConfig config) throws URISyntaxException
URISyntaxExceptionpublic static ImpressionsManager instanceForTest(org.apache.http.impl.client.CloseableHttpClient client, SplitClientConfig config, ImpressionsSender impressionsSender) throws URISyntaxException
URISyntaxExceptionpublic void log(String key, String bucketingKey, String feature, String treatment, long time, String label)
TreatmentLoglog in interface TreatmentLogkey - whofeature - for which featuretreatment - saw whattime - at what timepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2016. All rights reserved.