mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 20:22:07 +08:00
补充提交
This commit is contained in:
@@ -47,7 +47,7 @@ public class DataBus {
|
||||
QUEUE = IntStream.range(0, slotSize - 1).boxed().collect(Collectors.toCollection(ConcurrentLinkedQueue::new));
|
||||
}
|
||||
|
||||
public synchronized static int offerSlot(Class<? extends Slot> slotClazz) {
|
||||
public static int offerSlot(Class<? extends Slot> slotClazz) {
|
||||
try {
|
||||
Slot slot = slotClazz.newInstance();
|
||||
Integer slotIndex = QUEUE.poll();
|
||||
|
||||
Reference in New Issue
Block a user