mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-24 10:38:10 +08:00
enhancement #I2NXDL slot 并发度控制数可以交由业务系统配置
This commit is contained in:
@@ -16,7 +16,7 @@ public class DataBus {
|
||||
|
||||
private static final Logger LOG = LoggerFactory.getLogger(DataBus.class);
|
||||
|
||||
public static final int SLOT_SIZE = 1024;
|
||||
public static int SLOT_SIZE = 1024;
|
||||
|
||||
public static AtomicInteger OCCUPY_COUNT = new AtomicInteger(0);
|
||||
|
||||
@@ -52,4 +52,12 @@ public class DataBus {
|
||||
LOG.warn("slot[{}] already has been released",slotIndex);
|
||||
}
|
||||
}
|
||||
|
||||
public static int getSlotSize() {
|
||||
return SLOT_SIZE;
|
||||
}
|
||||
|
||||
public static void setSlotSize(int slotSize) {
|
||||
SLOT_SIZE = slotSize;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user