dxFeed Graal Native SDK 3.12.0
Loading...
Searching...
No Matches
dxfg_java_object_handler Struct Reference

The handle of a Java object: the reference by which the C code refers to an object that lives in Java. More...

#include <dxfg_javac.h>

Data Fields

void * java_object_handle

Detailed Description

The handle of a Java object: the reference by which the C code refers to an object that lives in Java.

The handle is allocated by the SDK and owned by the caller: release it with dxfg_JavaObjectHandler_release(), which frees the structure and drops the reference to the Java object. As long as any handle of an object exists, the object is not garbage collected. Use dxfg_JavaObjectHandler_clone() to get another handle of the same object.

The typed handle structures (e.g. dxfg_executor_t, dxfg_time_zone_t) consist of this structure only (the field handler), so a pointer to a typed handle is passed to the functions that take a dxfg_java_object_handler * as &typed->handler (or by a cast).

Use dxfg_Object_toString() to get the string representation of the object, dxfg_Object_equals() to compare objects and dxfg_Object_hashCode() to get the hash code.

Field Documentation

◆ java_object_handle

void* dxfg_java_object_handler::java_object_handle

The reference to the Java object (an opaque value of the SDK): do not interpret or change it.


The documentation for this struct was generated from the following file: