public class SplitClientForTest extends Object implements SplitClient
| Constructor and Description |
|---|
SplitClientForTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
blockUntilReady() |
void |
clearTreatments() |
void |
destroy() |
String |
getTreatment(Key key,
String split,
Map<String,Object> attributes) |
String |
getTreatment(String key,
String split) |
String |
getTreatment(String key,
String split,
Map<String,Object> attributes) |
SplitResult |
getTreatmentWithConfig(Key key,
String split,
Map<String,Object> attributes) |
SplitResult |
getTreatmentWithConfig(String key,
String split) |
SplitResult |
getTreatmentWithConfig(String key,
String split,
Map<String,Object> attributes) |
void |
registerTreatment(String feature,
String treatment) |
void |
registerTreatments(Map<String,String> treatments) |
Map<String,String> |
tests() |
boolean |
track(String key,
String trafficType,
String eventType) |
boolean |
track(String key,
String trafficType,
String eventType,
double value) |
public void clearTreatments()
public String getTreatment(String key, String split)
getTreatment in interface SplitClientpublic String getTreatment(String key, String split, Map<String,Object> attributes)
getTreatment in interface SplitClientpublic String getTreatment(Key key, String split, Map<String,Object> attributes)
getTreatment in interface SplitClientpublic SplitResult getTreatmentWithConfig(String key, String split)
getTreatmentWithConfig in interface SplitClientpublic SplitResult getTreatmentWithConfig(String key, String split, Map<String,Object> attributes)
getTreatmentWithConfig in interface SplitClientpublic SplitResult getTreatmentWithConfig(Key key, String split, Map<String,Object> attributes)
getTreatmentWithConfig in interface SplitClientpublic void destroy()
destroy in interface SplitClientpublic boolean track(String key, String trafficType, String eventType)
track in interface SplitClientpublic boolean track(String key, String trafficType, String eventType, double value)
track in interface SplitClientpublic void blockUntilReady()
throws TimeoutException,
InterruptedException
blockUntilReady in interface SplitClientTimeoutExceptionInterruptedExceptionCopyright © 2019. All rights reserved.