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<Object>
jnr.ffi.provider.jffi.NativeClosureFactory.ClosureReference
- All Implemented Interfaces:
FinalizableReference
- Enclosing class:
- NativeClosureFactory<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final NativeClosureFactory
private final Integer
(package private) NativeClosureFactory<T>.ClosureReference
private final NativeClosurePointer
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ClosureReference
(Object referent, Integer key, NativeClosureFactory factory, NativeClosurePointer pointer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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) Object
(package private) Pointer
Methods inherited from class java.lang.ref.Reference
clear, enqueue, get, isEnqueued
-
Field Details
-
next
-
factory
-
pointer
-
key
-
-
Constructor Details
-
ClosureReference
private ClosureReference(Object referent, Integer key, NativeClosureFactory factory, NativeClosurePointer pointer)
-
-
Method Details
-
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
Object getCallable() -
getPointer
Pointer getPointer()
-