Class NativeClosureFactory.ClosureReference
java.lang.Object
java.lang.ref.Reference<Object>
java.lang.ref.WeakReference<Object>
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 NativeClosureFactoryprivate final Integer(package private) NativeClosureFactory<T>.ClosureReferenceprivate final NativeClosurePointer -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateClosureReference(Object referent, Integer key, NativeClosureFactory factory, NativeClosurePointer pointer) -
Method Summary
Modifier and TypeMethodDescriptionvoidInvoked 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) PointerMethods inherited from class 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: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
Object getCallable() -
getPointer
Pointer getPointer()
-