public class SignOutResultHandle
extends com.sun.jna.ptr.LongByReference
| Modifier and Type | Field and Description |
|---|---|
protected com.sun.jna.ptr.LongByReference |
msalRuntimeHandle |
| Constructor and Description |
|---|
SignOutResultHandle() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Used to automatically release handles created in a try-with-resources block
|
void |
release()
All Java objects created by the interop will either be cleaned up by the JVM's garbage
collector or by the operating system if the JVM shuts down, however the MSALRuntime handles
and their underlying data won't be since the JVM doesn't actually know about that data
|
long |
value()
Returns the handle value that this Handle instance represents.
|
public long value()
public void release()
So, to avoid memory leaks all MSALRuntime handles must eventually be 'released' by calling the appropriate MSALRuntime MSALRuntime_RELEASE* API for that type of handle
In most cases a handle can be released immediately after using it to retrieve some data, however there are some scenarios where handles must be stored for an indefinite amount of time and we must rely on Java's PhantomReference and our AsyncHandleFinalizerThread
public void close()
close in interface AutoCloseableCopyright © 2023. All rights reserved.