com.javanut.pronghorn.pipe.util.IntArrayPoolLocal Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pronghorn-pipes Show documentation
Show all versions of pronghorn-pipes Show documentation
Ring buffer based queuing utility for applications that require high performance and/or a small
footprint. Well suited for embedded and stream based processing.
package com.javanut.pronghorn.pipe.util;
public class IntArrayPoolLocal {
private static final int maxSize = 32;
private static final ThreadLocal tpr =
new ThreadLocal() {
@Override protected IntArrayPool initialValue() {
return new IntArrayPool(maxSize);
}
};
public static IntArrayPool get() {
return tpr.get();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy