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

com.wizzardo.tools.misc.pool.ThreadLocalPool Maven / Gradle / Ivy

There is a newer version: 0.23
Show newest version
package com.wizzardo.tools.misc.pool;

import java.util.LinkedList;
import java.util.Queue;

/**
 * Created by wizzardo on 18.06.15.
 */
public abstract class ThreadLocalPool extends AbstractQueuedPool {
    protected ThreadLocal>> queue = new ThreadLocal>>() {
        @Override
        protected Queue> initialValue() {
            return new LinkedList>();
        }
    };

    @Override
    protected Queue> queue() {
        return queue.get();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy