All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.yangyouwang.core.CachePool Maven / Gradle / Ivy

There is a newer version: 1.8
Show newest version
package io.github.yangyouwang.core;

import java.util.concurrent.ConcurrentLinkedQueue;

/**
 * 缓存池
 * @author yangyouwang
 */
public class CachePool {

    /**
     * 最大可用的CPU核数 x 2
     */
    protected static final int PROCESSORS = Runtime.getRuntime().availableProcessors() << 1;
    /**
     * 排序字段队列
     */
    protected static ConcurrentLinkedQueue FIELD_NAME_QUEUE = new ConcurrentLinkedQueue();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy