update 整理 代码顺序

feature/model
疯狂的狮子Li 1 year ago
parent c1ed482c59
commit 2a74329206

@ -131,17 +131,6 @@ public class QueueUtils {
return priorityBlockingQueue.offer(data); return priorityBlockingQueue.offer(data);
} }
/**
*
*
* @param queueName
* @param capacity
*/
public static <T> boolean trySetBoundedQueueCapacity(String queueName, int capacity) {
RBoundedBlockingQueue<T> boundedBlockingQueue = CLIENT.getBoundedBlockingQueue(queueName);
return boundedBlockingQueue.trySetCapacity(capacity);
}
/** /**
* null() * null()
* *
@ -168,6 +157,17 @@ public class QueueUtils {
return queue.delete(); return queue.delete();
} }
/**
*
*
* @param queueName
* @param capacity
*/
public static <T> boolean trySetBoundedQueueCapacity(String queueName, int capacity) {
RBoundedBlockingQueue<T> boundedBlockingQueue = CLIENT.getBoundedBlockingQueue(queueName);
return boundedBlockingQueue.trySetCapacity(capacity);
}
/** /**
* *
* *

@ -21,7 +21,6 @@ import org.springframework.web.bind.annotation.RestController;
* @author Lion Li * @author Lion Li
* @version 3.6.0 * @version 3.6.0
*/ */
@SaIgnore
@Slf4j @Slf4j
@RequiredArgsConstructor @RequiredArgsConstructor
@RestController @RestController

Loading…
Cancel
Save