com.github.luben.zstd.NoPool Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jena-fmod-kafka Show documentation
Show all versions of jena-fmod-kafka Show documentation
Apache Jena Fuseki server Kafka connector
The newest version!
package com.github.luben.zstd;
import java.nio.ByteBuffer;
/**
* Implementation of `BufferPool` that does not recycle buffers.
*/
public class NoPool implements BufferPool {
public static final BufferPool INSTANCE = new NoPool();
private NoPool() {
}
@Override
public ByteBuffer get(int capacity) {
return ByteBuffer.allocate(capacity);
}
@Override
public void release(ByteBuffer buffer) {
}
}