Package org.bytedeco.javacpp
Class Pointer.CustomDeallocator
- All Implemented Interfaces:
Pointer.Deallocator,Pointer.ReferenceCounter
- Enclosing class:
Pointer
A
Pointer.Deallocator that calls, during garbage collection, a method with signature
static void deallocate() from the Pointer object passed to the constructor
and that accepts it as argument. Uses reflection to locate and call the method.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.ref.PhantomReference
getMethods inherited from class java.lang.ref.Reference
clone, enqueue, isEnqueued, reachabilityFence, refersTo
-
Constructor Details
-
CustomDeallocator
-
-
Method Details
-
deallocate
public void deallocate()- Specified by:
deallocatein interfacePointer.Deallocator
-
toString
-
clear
public void clear() -
retain
public void retain()- Specified by:
retainin interfacePointer.ReferenceCounter
-
release
public boolean release()- Specified by:
releasein interfacePointer.ReferenceCounter
-
count
public int count()- Specified by:
countin interfacePointer.ReferenceCounter
-