public interface CloseableNativeProxy
extends java.lang.AutoCloseable
You must close a native proxy when it is no longer needed to release any native resources (e.g., destroy a native object). You may use a try-with-resources statement to do that in orderly fashion. When a proxy is closed, it becomes invalid.
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the native proxy and releases any native resources associated with this proxy.
|
void close()
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.
close
in interface java.lang.AutoCloseable
Copyright © 2018 Exonum. All rights reserved.