enhancement #I2NXDL slot 并发度控制数可以交由业务系统配置

This commit is contained in:
bryan31
2021-03-18 17:54:18 +08:00
parent ecf734dd5e
commit 8aab51ba5d
6 changed files with 38 additions and 8 deletions

View File

@@ -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;
}
}