Class OTIOFinalizer

java.lang.Object
java.lang.ref.Reference<T>
java.lang.ref.PhantomReference<OTIONative>
io.opentimeline.OTIOFinalizer

public class OTIOFinalizer
extends java.lang.ref.PhantomReference<OTIONative>
A finalizer class for internal use of the library. It extends PhantomReference<> and stores the class name and native handle of the object whose reference it holds.

The OTIOFactory will call the cleanUp() method of this class to free native memory allocated after the Java object is Garbage Collected.

  • Constructor Summary

    Constructors 
    Constructor Description
    OTIOFinalizer​(OTIONative referent, java.lang.ref.ReferenceQueue<OTIONative> q)  
  • Method Summary

    Modifier and Type Method Description
    void cleanUp()  

    Methods inherited from class java.lang.ref.PhantomReference

    get

    Methods inherited from class java.lang.ref.Reference

    clear, clone, enqueue, isEnqueued, reachabilityFence

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait