Package jnr.ffi.provider.jffi
Class NativeClosureFactory.ClosureReference
- java.lang.Object
-
- java.lang.ref.Reference<T>
-
- java.lang.ref.WeakReference<T>
-
- jnr.ffi.util.ref.FinalizableWeakReference<java.lang.Object>
-
- jnr.ffi.provider.jffi.NativeClosureFactory.ClosureReference
-
- All Implemented Interfaces:
FinalizableReference
- Enclosing class:
- NativeClosureFactory<T>
final class NativeClosureFactory.ClosureReference extends FinalizableWeakReference<java.lang.Object>
-
-
Field Summary
Fields Modifier and Type Field Description private NativeClosureFactoryfactoryprivate java.lang.Integerkey(package private) NativeClosureFactory.ClosureReferencenextprivate NativeClosurePointerpointer
-
Constructor Summary
Constructors Modifier Constructor Description privateClosureReference(java.lang.Object referent, java.lang.Integer key, NativeClosureFactory factory, NativeClosurePointer pointer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinalizeReferent()Invoked on a background thread after the referent has been garbage collected unless security restrictions prevented starting a background thread, in which case this method is invoked when new references are created.(package private) java.lang.ObjectgetCallable()(package private) PointergetPointer()
-
-
-
Field Detail
-
next
volatile NativeClosureFactory.ClosureReference next
-
factory
private final NativeClosureFactory factory
-
pointer
private final NativeClosurePointer pointer
-
key
private final java.lang.Integer key
-
-
Constructor Detail
-
ClosureReference
private ClosureReference(java.lang.Object referent, java.lang.Integer key, NativeClosureFactory factory, NativeClosurePointer pointer)
-
-
Method Detail
-
finalizeReferent
public void finalizeReferent()
Description copied from interface:FinalizableReferenceInvoked on a background thread after the referent has been garbage collected unless security restrictions prevented starting a background thread, in which case this method is invoked when new references are created.
-
getCallable
java.lang.Object getCallable()
-
getPointer
Pointer getPointer()
-
-