...
|
...
|
@@ -138,31 +138,31 @@ class DefaultTbContext implements TbContext { |
138
|
138
|
|
139
|
139
|
@Override
|
140
|
140
|
public void enqueueForTellFailure(TbMsg tbMsg, String failureMessage) {
|
141
|
|
- TopicPartitionInfo tpi = mainCtx.resolve(ServiceType.TB_RULE_ENGINE, getTenantId(), tbMsg.getOriginator());
|
|
141
|
+ TopicPartitionInfo tpi = mainCtx.resolve(ServiceType.TB_RULE_ENGINE, tbMsg.getQueueName(), getTenantId(), tbMsg.getOriginator());
|
142
|
142
|
enqueueForTellNext(tpi, tbMsg, Collections.singleton(TbRelationTypes.FAILURE), failureMessage, null, null);
|
143
|
143
|
}
|
144
|
144
|
|
145
|
145
|
@Override
|
146
|
146
|
public void enqueueForTellNext(TbMsg tbMsg, String relationType) {
|
147
|
|
- TopicPartitionInfo tpi = mainCtx.resolve(ServiceType.TB_RULE_ENGINE, getTenantId(), tbMsg.getOriginator());
|
|
147
|
+ TopicPartitionInfo tpi = mainCtx.resolve(ServiceType.TB_RULE_ENGINE, tbMsg.getQueueName(), getTenantId(), tbMsg.getOriginator());
|
148
|
148
|
enqueueForTellNext(tpi, tbMsg, Collections.singleton(relationType), null, null, null);
|
149
|
149
|
}
|
150
|
150
|
|
151
|
151
|
@Override
|
152
|
152
|
public void enqueueForTellNext(TbMsg tbMsg, Set<String> relationTypes) {
|
153
|
|
- TopicPartitionInfo tpi = mainCtx.resolve(ServiceType.TB_RULE_ENGINE, getTenantId(), tbMsg.getOriginator());
|
|
153
|
+ TopicPartitionInfo tpi = mainCtx.resolve(ServiceType.TB_RULE_ENGINE, tbMsg.getQueueName(), getTenantId(), tbMsg.getOriginator());
|
154
|
154
|
enqueueForTellNext(tpi, tbMsg, relationTypes, null, null, null);
|
155
|
155
|
}
|
156
|
156
|
|
157
|
157
|
@Override
|
158
|
158
|
public void enqueueForTellNext(TbMsg tbMsg, String relationType, Runnable onSuccess, Consumer<Throwable> onFailure) {
|
159
|
|
- TopicPartitionInfo tpi = mainCtx.resolve(ServiceType.TB_RULE_ENGINE, getTenantId(), tbMsg.getOriginator());
|
|
159
|
+ TopicPartitionInfo tpi = mainCtx.resolve(ServiceType.TB_RULE_ENGINE, tbMsg.getQueueName(), getTenantId(), tbMsg.getOriginator());
|
160
|
160
|
enqueueForTellNext(tpi, tbMsg, Collections.singleton(relationType), null, onSuccess, onFailure);
|
161
|
161
|
}
|
162
|
162
|
|
163
|
163
|
@Override
|
164
|
164
|
public void enqueueForTellNext(TbMsg tbMsg, Set<String> relationTypes, Runnable onSuccess, Consumer<Throwable> onFailure) {
|
165
|
|
- TopicPartitionInfo tpi = mainCtx.resolve(ServiceType.TB_RULE_ENGINE, getTenantId(), tbMsg.getOriginator());
|
|
165
|
+ TopicPartitionInfo tpi = mainCtx.resolve(ServiceType.TB_RULE_ENGINE, tbMsg.getQueueName(), getTenantId(), tbMsg.getOriginator());
|
166
|
166
|
enqueueForTellNext(tpi, tbMsg, relationTypes, null, onSuccess, onFailure);
|
167
|
167
|
}
|
168
|
168
|
|
...
|
...
|
|