File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
client/src/main/java/io/split/engine Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 1111import org .slf4j .LoggerFactory ;
1212
1313import java .io .Closeable ;
14+ import java .util .HashSet ;
1415import java .util .List ;
1516import java .util .Map ;
17+ import java .util .Set ;
1618import java .util .concurrent .ConcurrentMap ;
1719import java .util .concurrent .ExecutionException ;
1820import java .util .concurrent .Future ;
@@ -198,4 +200,11 @@ private void initialize(String segmentName) {
198200 _segmentFetchers .putIfAbsent (segmentName , segment );
199201 }
200202 }
203+
204+ private Set <String > getSegmentNames () {
205+ Set <String > names = new HashSet <>(_splitCacheConsumer .getSegments ());
206+ names .addAll (_ruleBasedSegmentCacheConsumer .getSegments ());
207+
208+ return names ;
209+ }
201210}
Original file line number Diff line number Diff line change 11package io .split .engine .sse ;
22
33import com .google .common .annotations .VisibleForTesting ;
4+ import io .split .client .dtos .Split ;
45import io .split .engine .sse .dtos .GenericNotificationData ;
56import io .split .engine .sse .dtos .IncomingNotification ;
67import io .split .engine .sse .dtos .SplitKillNotification ;
78import io .split .engine .sse .dtos .StatusNotification ;
89import io .split .engine .sse .dtos .SegmentQueueDto ;
10+ import io .split .engine .sse .dtos .CommonChangeNotification ;
911import io .split .engine .sse .workers .FeatureFlagsWorker ;
1012import io .split .engine .sse .workers .Worker ;
1113
@@ -42,10 +44,10 @@ public void process(IncomingNotification notification) {
4244 @ Override
4345 public void processSplitKill (SplitKillNotification splitKillNotification ) {
4446 _featureFlagsWorker .kill (splitKillNotification );
45- _featureFlagsWorker .addToQueue (new SplitKillNotification (GenericNotificationData .builder ()
47+ _featureFlagsWorker .addToQueue (new CommonChangeNotification <> (GenericNotificationData .builder ()
4648 .changeNumber (splitKillNotification .getChangeNumber ())
4749 .channel (splitKillNotification .getChannel ())
48- .build ()));
50+ .build (), Split . class ));
4951 }
5052
5153 @ Override
You can’t perform that action at this time.
0 commit comments