jnr.ffi.provider.jffi.NativeFinalizer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jnr-unixsocket-nodep Show documentation
Show all versions of jnr-unixsocket-nodep Show documentation
com.github.jnr:jnr-unixsocket with orh.objectweb.asm shaded
The newest version!
package jnr.ffi.provider.jffi;
import jnr.ffi.util.ref.FinalizableReferenceQueue;
/**
*
*/
class NativeFinalizer {
private final FinalizableReferenceQueue finalizerQueue = new FinalizableReferenceQueue();
private static final class SingletonHolder {
private static final NativeFinalizer INSTANCE = new NativeFinalizer();
}
public static NativeFinalizer getInstance() {
return SingletonHolder.INSTANCE;
}
public FinalizableReferenceQueue getFinalizerQueue() {
return finalizerQueue;
}
}