mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 12:12:08 +08:00
优化代码
This commit is contained in:
@@ -34,7 +34,7 @@ public abstract class NodeComponent {
|
||||
|
||||
private static final Logger LOG = LoggerFactory.getLogger(NodeComponent.class);
|
||||
|
||||
private TransmittableThreadLocal<Integer> slotIndexTL = new TransmittableThreadLocal<>();
|
||||
private final TransmittableThreadLocal<Integer> slotIndexTL = new TransmittableThreadLocal<>();
|
||||
|
||||
@Autowired(required = false)
|
||||
private MonitorBus monitorBus;
|
||||
@@ -48,7 +48,7 @@ public abstract class NodeComponent {
|
||||
private NodeComponent self;
|
||||
|
||||
//是否结束整个流程,这个只对串行流程有效,并行流程无效
|
||||
private TransmittableThreadLocal<Boolean> isEndTL = new TransmittableThreadLocal<>();
|
||||
private final TransmittableThreadLocal<Boolean> isEndTL = new TransmittableThreadLocal<>();
|
||||
|
||||
public void execute() throws Exception{
|
||||
Slot slot = this.getSlot();
|
||||
|
||||
Reference in New Issue
Block a user