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 NativeClosureFactory
factory
private java.lang.Integer
key
(package private) NativeClosureFactory.ClosureReference
next
private NativeClosurePointer
pointer
-
Constructor Summary
Constructors Modifier Constructor Description private
ClosureReference(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 void
finalizeReferent()
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.Object
getCallable()
(package private) Pointer
getPointer()
-
-
-
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:FinalizableReference
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.
-
getCallable
java.lang.Object getCallable()
-
getPointer
Pointer getPointer()
-
-