package org.opencloudb.buffer;
public class ThreadLocalBufferPool extends ThreadLocal<BufferQueue> {
private final int size;
public ThreadLocalBufferPool(int size) {
this.size = size;
}
protected synchronized BufferQueue initialValue() {
return new BufferQueue(size);
}
}