@Configuration public class SagaLevel3Config extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected String |
appName |
protected String |
appTopic |
protected String |
serverTopic
saga-server topic
|
protected org.springframework.kafka.core.KafkaTemplate |
template |
| 构造器和说明 |
|---|
SagaLevel3Config() |
@Value(value="${beetlsql-saga.kafka.server-topic:saga-server-topic}")
protected String serverTopic
@Value(value="${beetlsql-saga.kafka.client-topic-prefix}")
protected String appTopic
@Autowired protected org.springframework.kafka.core.KafkaTemplate template
@Value(value="${spring.application.name}")
protected String appName
@PostConstruct public void initSaga()
@KafkaListener(topics="#{\'${beetlsql-saga.kafka.client-topic-prefix}\'+\'-\'+\'${spring.application.name}\'}")
public void retry(org.apache.kafka.clients.consumer.ConsumerRecord<?,RollbackTask> record)
throws Exception
record - ExceptionCopyright © 2020. All rights reserved.