File tree 5 files changed +14
-5
lines changed
java/bio/overture/maestro/app/infra/adapter/inbound/messaging
5 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 1
- -Drevision=3.5 .0
1
+ -Drevision=3.6 .0
2
2
-Dsha1=
3
3
-Dchangelist=-SNAPSHOT
Original file line number Diff line number Diff line change 28
28
import lombok .NonNull ;
29
29
import lombok .extern .slf4j .Slf4j ;
30
30
import lombok .val ;
31
- import org .springframework .boot .autoconfigure .condition .ConditionalOnProperty ;
31
+ import org .springframework .boot .autoconfigure .condition .ConditionalOnExpression ;
32
32
import org .springframework .cloud .stream .annotation .EnableBinding ;
33
33
import org .springframework .cloud .stream .annotation .StreamListener ;
34
34
import org .springframework .cloud .stream .messaging .Sink ;
39
39
40
40
@ Slf4j
41
41
@ EnableBinding (Sink .class )
42
- @ ConditionalOnProperty (name = "maestro.disableIndexing" , havingValue = "false" )
42
+ @ ConditionalOnExpression (
43
+ "${maestro.disableIndexing} eq false && ${maestro.disableEventIndexing} eq false"
44
+ )
43
45
public class IndexingMessagesStreamListener {
44
46
45
47
private final Indexer indexer ;
Original file line number Diff line number Diff line change 29
29
import java .util .List ;
30
30
import lombok .extern .slf4j .Slf4j ;
31
31
import lombok .val ;
32
- import org .springframework .boot .autoconfigure .condition .ConditionalOnProperty ;
32
+ import org .springframework .boot .autoconfigure .condition .ConditionalOnExpression ;
33
33
import org .springframework .cloud .stream .annotation .EnableBinding ;
34
34
import org .springframework .cloud .stream .annotation .StreamListener ;
35
35
import org .springframework .messaging .handler .annotation .Payload ;
36
36
import reactor .core .publisher .Flux ;
37
37
38
38
@ Slf4j
39
39
@ EnableBinding (SongAnalysisSink .class )
40
- @ ConditionalOnProperty (name = "maestro.disableIndexing" , havingValue = "false" )
40
+ @ ConditionalOnExpression (
41
+ "${maestro.disableIndexing} eq false && ${maestro.disableEventIndexing} eq false"
42
+ )
41
43
public class SongAnalysisStreamListener {
42
44
43
45
private Indexer indexer ;
Original file line number Diff line number Diff line change 7
7
# but you still need to define the repositories
8
8
disableIndexing : false
9
9
10
+ # this can be used to disable kafka integration, this option is preceded by disableIndexing
11
+ disableEventIndexing : false
12
+
10
13
webclient :
11
14
# -1 = unlimited memory size
12
15
maxInMemorySize : -1
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ server.port:
3
3
4
4
maestro :
5
5
disableIndexing : false
6
+ disableEventIndexing : false
7
+
6
8
exclusionRules :
7
9
byId :
8
10
studyId :
You can’t perform that action at this time.
0 commit comments