| Package | Description |
|---|---|
| io.split.client |
| Modifier and Type | Method and Description |
|---|---|
String |
SplitClientImpl.getTreatment(Key key,
String split,
Map<String,Object> attributes) |
String |
SplitClient.getTreatment(Key key,
String split,
Map<String,Object> attributes)
To understand why this method is useful, consider the following simple Split as an example:
if user is in segment employees then split 100%:on
else if user is in segment all then split 20%:on,80%:off
There are two concepts here: matching and bucketing.
|
Map<String,String> |
SplitClientImpl.getTreatments(Key key,
List<String> splits,
Map<String,Object> attributes) |
Map<String,String> |
SplitClient.getTreatments(Key key,
List<String> splits,
Map<String,Object> attributes)
To understand why this method is useful, consider the following simple Split as an example:
if user is in segment employees then split 100%:on
else if user is in segment all then split 20%:on,80%:off
There are two concepts here: matching and bucketing.
|
Map<String,SplitResult> |
SplitClientImpl.getTreatmentsWithConfig(Key key,
List<String> splits,
Map<String,Object> attributes) |
Map<String,SplitResult> |
SplitClient.getTreatmentsWithConfig(Key key,
List<String> splits,
Map<String,Object> attributes)
Same as
#getTreatments(Key, List but it returns for each feature the configuration associated to the
matching treatment if any. |
SplitResult |
SplitClientImpl.getTreatmentWithConfig(Key key,
String split,
Map<String,Object> attributes) |
SplitResult |
SplitClient.getTreatmentWithConfig(Key key,
String split,
Map<String,Object> attributes)
Same as
SplitClient.getTreatment(Key, String, Map) but it returns the configuration associated to the
matching treatment if any. |
Copyright © 2022. All rights reserved.