Interface CloseableNativeProxy

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void close()
      Closes the native proxy and releases any native resources associated with this proxy.
    • Method Detail

      • close

        void close()
        Closes the native proxy and releases any native resources associated with this proxy.

        Notifies the native code that the native object is no longer needed, and may be safely destroyed. Once closed, the proxy becomes invalid.

        The implementations must be idempotent — do nothing on consecutive invocations.

        Specified by:
        close in interface AutoCloseable