Class PreparableStatement.PreparableStatementFinalizer

java.lang.Object
java.lang.ref.Reference<T>
java.lang.ref.PhantomReference<PreparableStatement<?>>
com.mysql.cj.xdevapi.PreparableStatement.PreparableStatementFinalizer
Enclosing class:
PreparableStatement<RES_T>

public static class PreparableStatement.PreparableStatementFinalizer
extends java.lang.ref.PhantomReference<PreparableStatement<?>>
PhantomReference to track prepared statement ids. An instance of this class must be kept until the prepared statement is properly deallocated. If proper deallocation does not happen, this is used to identify abandoned prepared statements and proceed with its deallocation after the object is destructed by using a ReferenceQueue.
  • Constructor Summary

    Constructors 
    Constructor Description
    PreparableStatementFinalizer​(PreparableStatement<?> referent, java.lang.ref.ReferenceQueue<? super PreparableStatement<?>> q, int preparedStatementId)  
  • Method Summary

    Modifier and Type Method Description
    int getPreparedStatementId()  

    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