mirror of
https://gitee.com/mirrors/Spring-Cloud-Alibaba.git
synced 2021-06-26 13:25:11 +08:00
close #234
This commit is contained in:
parent
0cb0f7516f
commit
2a05e7ff5a
@ -98,6 +98,9 @@ public class RocketMQMessageHandler extends AbstractMessageHandler implements Li
|
|||||||
producer = new DefaultMQProducer(destination);
|
producer = new DefaultMQProducer(destination);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
producer.setVipChannelEnabled(
|
||||||
|
producerProperties.getExtension().getVipChannelEnabled());
|
||||||
|
|
||||||
Optional.ofNullable(instrumentationManager).ifPresent(manager -> {
|
Optional.ofNullable(instrumentationManager).ifPresent(manager -> {
|
||||||
producerInstrumentation = manager.getProducerInstrumentation(destination);
|
producerInstrumentation = manager.getProducerInstrumentation(destination);
|
||||||
manager.addHealthInstrumentation(producerInstrumentation);
|
manager.addHealthInstrumentation(producerInstrumentation);
|
||||||
|
@ -45,6 +45,8 @@ public class RocketMQProducerProperties {
|
|||||||
*/
|
*/
|
||||||
private String transactionCheckListener;
|
private String transactionCheckListener;
|
||||||
|
|
||||||
|
private Boolean vipChannelEnabled = true;
|
||||||
|
|
||||||
public Boolean getEnabled() {
|
public Boolean getEnabled() {
|
||||||
return enabled;
|
return enabled;
|
||||||
}
|
}
|
||||||
@ -84,4 +86,12 @@ public class RocketMQProducerProperties {
|
|||||||
public void setTransactionCheckListener(String transactionCheckListener) {
|
public void setTransactionCheckListener(String transactionCheckListener) {
|
||||||
this.transactionCheckListener = transactionCheckListener;
|
this.transactionCheckListener = transactionCheckListener;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Boolean getVipChannelEnabled() {
|
||||||
|
return vipChannelEnabled;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setVipChannelEnabled(Boolean vipChannelEnabled) {
|
||||||
|
this.vipChannelEnabled = vipChannelEnabled;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user