-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathEvaluationContext.java
More file actions
31 lines (24 loc) · 1.08 KB
/
EvaluationContext.java
File metadata and controls
31 lines (24 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package io.split.engine.evaluator;
import io.split.storages.RuleBasedSegmentCacheConsumer;
import io.split.storages.SegmentCacheConsumer;
import static com.google.common.base.Preconditions.checkNotNull;
public class EvaluationContext {
private final Evaluator _evaluator;
private final SegmentCacheConsumer _segmentCacheConsumer;
private final RuleBasedSegmentCacheConsumer _ruleBasedSegmentCacheConsumer;
public EvaluationContext(Evaluator evaluator, SegmentCacheConsumer segmentCacheConsumer,
RuleBasedSegmentCacheConsumer ruleBasedSegmentCacheConsumer) {
_evaluator = checkNotNull(evaluator);
_segmentCacheConsumer = checkNotNull(segmentCacheConsumer);
_ruleBasedSegmentCacheConsumer = checkNotNull(ruleBasedSegmentCacheConsumer);
}
public Evaluator getEvaluator() {
return _evaluator;
}
public SegmentCacheConsumer getSegmentCache() {
return _segmentCacheConsumer;
}
public RuleBasedSegmentCacheConsumer getRuleBasedSegmentCache() {
return _ruleBasedSegmentCacheConsumer;
}
}