dxFeed Graal Native SDK 3.9.0
Loading...
Searching...
No Matches
Javac

Data Structures

struct  dxfg_java_object_handler
struct  dxfg_java_object_t
struct  dxfg_list
struct  dxfg_java_object_handler_list
struct  dxfg_string_list
struct  dxfg_executor_t
struct  dxfg_input_stream_t
struct  dxfg_time_period_t
struct  dxfg_time_format_t
struct  dxfg_time_zone_t
struct  dxfg_auth_token_t

Typedefs

typedef struct dxfg_java_object_handler dxfg_java_object_handler
typedef struct dxfg_java_object_t dxfg_java_object_t
typedef struct dxfg_list dxfg_list
typedef struct dxfg_java_object_handler_list dxfg_java_object_handler_list
typedef struct dxfg_string_list dxfg_string_list
typedef struct dxfg_executor_t dxfg_executor_t
typedef struct dxfg_input_stream_t dxfg_input_stream_t
typedef struct dxfg_time_period_t dxfg_time_period_t
typedef struct dxfg_time_format_t dxfg_time_format_t
typedef struct dxfg_time_zone_t dxfg_time_zone_t
typedef struct dxfg_auth_token_t dxfg_auth_token_t
typedef enum dxfg_rounding_mode_t dxfg_rounding_mode_t
typedef void(*) dxfg_finalize_function(graal_isolatethread_t *thread, void *user_data)

Enumerations

enum  dxfg_rounding_mode_t {
  DXFG_ROUNDING_MODE_UP = 0 , DXFG_ROUNDING_MODE_DOWN , DXFG_ROUNDING_MODE_CEILING , DXFG_ROUNDING_MODE_FLOOR ,
  DXFG_ROUNDING_MODE_HALF_UP , DXFG_ROUNDING_MODE_HALF_DOWN , DXFG_ROUNDING_MODE_HALF_EVEN , DXFG_ROUNDING_MODE_UNNECESSARY
}

Functions

int32_t dxfg_Object_finalize (graal_isolatethread_t *thread, dxfg_java_object_handler *handler, dxfg_finalize_function finalize, void *user_data)
int32_t dxfg_JavaObjectHandler_release (graal_isolatethread_t *thread, dxfg_java_object_handler *handler)
int32_t dxfg_NativeListener_deactivate (graal_isolatethread_t *thread, dxfg_java_object_handler *listener)
int32_t dxfg_JavaObjectHandler_clone (graal_isolatethread_t *thread, dxfg_java_object_handler *javaObjectHandler, dxfg_java_object_handler **javaObjectHandlerClone)
int32_t dxfg_JavaObjectHandler_array_release (graal_isolatethread_t *thread, const dxfg_java_object_handler **handlersArray, int32_t size)
int32_t dxfg_Object_new (graal_isolatethread_t *thread, DXFG_OUT dxfg_java_object_handler **object)
const char * dxfg_Object_toString (graal_isolatethread_t *thread, dxfg_java_object_handler *object)
int32_t dxfg_Object_equals (graal_isolatethread_t *thread, dxfg_java_object_handler *object, dxfg_java_object_handler *other)
int32_t dxfg_Object_hashCode (graal_isolatethread_t *thread, dxfg_java_object_handler *object)
int32_t dxfg_Comparable_compareTo (graal_isolatethread_t *thread, dxfg_java_object_handler *object, dxfg_java_object_handler *other)
int32_t dxfg_CList_JavaObjectHandler_release (graal_isolatethread_t *thread, dxfg_java_object_handler_list *list)
int32_t dxfg_String_release (graal_isolatethread_t *thread, const char *string)
int32_t dxfg_CList_String_release (graal_isolatethread_t *thread, dxfg_string_list *stringList)
dxfg_executor_t * dxfg_Executors_newFixedThreadPool (graal_isolatethread_t *thread, int nThreads, const char *nameThreads)
dxfg_executor_t * dxfg_Executors_newScheduledThreadPool (graal_isolatethread_t *thread, int nThreads, const char *nameThreads)
dxfg_executor_t * dxfg_ExecutorBaseOnConcurrentLinkedQueue_new (graal_isolatethread_t *thread)
int32_t dxfg_ExecutorBaseOnConcurrentLinkedQueue_processAllPendingTasks (graal_isolatethread_t *thread, dxfg_executor_t *executor)
dxfg_input_stream_t * dxfg_ByteArrayInputStream_new (graal_isolatethread_t *thread, const char *bytes, int32_t size)
int32_t dxfg_gc (graal_isolatethread_t *thread)
dxfg_java_object_handler * dxfg_throw_exception (graal_isolatethread_t *thread)
dxfg_time_zone_t * dxfg_TimeZone_getTimeZone (graal_isolatethread_t *thread, const char *ID)
dxfg_time_zone_t * dxfg_TimeZone_getDefault (graal_isolatethread_t *thread)
const char * dxfg_TimeZone_getID (graal_isolatethread_t *thread, dxfg_time_zone_t *timeZone)
const char * dxfg_TimeZone_getDisplayName (graal_isolatethread_t *thread, dxfg_time_zone_t *timeZone)
const char * dxfg_TimeZone_getDisplayName2 (graal_isolatethread_t *thread, dxfg_time_zone_t *timeZone, int32_t daylight, int32_t style)
int32_t dxfg_TimeZone_getDSTSavings (graal_isolatethread_t *thread, dxfg_time_zone_t *timeZone)
int32_t dxfg_TimeZone_useDaylightTime (graal_isolatethread_t *thread, dxfg_time_zone_t *timeZone)
int32_t dxfg_TimeZone_observesDaylightTime (graal_isolatethread_t *thread, dxfg_time_zone_t *timeZone)
int32_t dxfg_TimeZone_getOffset (graal_isolatethread_t *thread, dxfg_time_zone_t *timeZone, int64_t date)
int32_t dxfg_TimeZone_getOffset2 (graal_isolatethread_t *thread, dxfg_time_zone_t *timeZone, int32_t era, int32_t year, int32_t month, int32_t day, int32_t dayOfWeek, int32_t milliseconds)
int32_t dxfg_TimeZone_getRawOffset (graal_isolatethread_t *thread, dxfg_time_zone_t *timeZone)
int32_t dxfg_TimeZone_hasSameRules (graal_isolatethread_t *thread, dxfg_time_zone_t *timeZone, dxfg_time_zone_t *other)
int32_t dxfg_TimeZone_inDaylightTime (graal_isolatethread_t *thread, dxfg_time_zone_t *timeZone, int64_t date)
int32_t dxfg_TimeZone_setID (graal_isolatethread_t *thread, dxfg_time_zone_t *timeZone, const char *ID)
int32_t dxfg_TimeZone_setRawOffset (graal_isolatethread_t *thread, dxfg_time_zone_t *timeZone, int32_t offsetMillis)
dxfg_time_period_t * dxfg_TimePeriod_ZERO (graal_isolatethread_t *thread)
dxfg_time_period_t * dxfg_TimePeriod_UNLIMITED (graal_isolatethread_t *thread)
dxfg_time_period_t * dxfg_TimePeriod_valueOf (graal_isolatethread_t *thread, int64_t value)
dxfg_time_period_t * dxfg_TimePeriod_valueOf2 (graal_isolatethread_t *thread, const char *value)
int64_t dxfg_TimePeriod_getTime (graal_isolatethread_t *thread, dxfg_time_period_t *timePeriod)
int32_t dxfg_TimePeriod_getSeconds (graal_isolatethread_t *thread, dxfg_time_period_t *timePeriod)
int64_t dxfg_TimePeriod_getNanos (graal_isolatethread_t *thread, dxfg_time_period_t *timePeriod)
dxfg_time_format_t * dxfg_TimeFormat_DEFAULT (graal_isolatethread_t *thread)
dxfg_time_format_t * dxfg_TimeFormat_GMT (graal_isolatethread_t *thread)
dxfg_time_format_t * dxfg_TimeFormat_getInstance (graal_isolatethread_t *thread, dxfg_time_zone_t *timeZone)
dxfg_time_format_t * dxfg_TimeFormat_withTimeZone (graal_isolatethread_t *thread, dxfg_time_format_t *timeFormat)
dxfg_time_format_t * dxfg_TimeFormat_withMillis (graal_isolatethread_t *thread, dxfg_time_format_t *timeFormat)
dxfg_time_format_t * dxfg_TimeFormat_asFullIso (graal_isolatethread_t *thread, dxfg_time_format_t *timeFormat)
int64_t dxfg_TimeFormat_parse (graal_isolatethread_t *thread, dxfg_time_format_t *timeFormat, const char *value)
const char * dxfg_TimeFormat_format (graal_isolatethread_t *thread, dxfg_time_format_t *timeFormat, int64_t value)
dxfg_time_zone_t * dxfg_TimeFormat_getTimeZone (graal_isolatethread_t *thread, dxfg_time_format_t *timeFormat)
dxfg_auth_token_t * dxfg_AuthToken_valueOf (graal_isolatethread_t *thread, const char *string)
dxfg_auth_token_t * dxfg_AuthToken_createBasicToken (graal_isolatethread_t *thread, const char *userPassword)
dxfg_auth_token_t * dxfg_AuthToken_createBasicToken2 (graal_isolatethread_t *thread, const char *user, const char *password)
dxfg_auth_token_t * dxfg_AuthToken_createBasicTokenOrNull (graal_isolatethread_t *thread, const char *user, const char *password)
dxfg_auth_token_t * dxfg_AuthToken_createBearerToken (graal_isolatethread_t *thread, const char *token)
dxfg_auth_token_t * dxfg_AuthToken_createBearerTokenOrNull (graal_isolatethread_t *thread, const char *token)
dxfg_auth_token_t * dxfg_AuthToken_createCustomToken (graal_isolatethread_t *thread, const char *scheme, const char *value)
const char * dxfg_AuthToken_getHttpAuthorization (graal_isolatethread_t *thread, dxfg_auth_token_t *authToken)
const char * dxfg_AuthToken_getUser (graal_isolatethread_t *thread, dxfg_auth_token_t *authToken)
const char * dxfg_AuthToken_getPassword (graal_isolatethread_t *thread, dxfg_auth_token_t *authToken)
const char * dxfg_AuthToken_getScheme (graal_isolatethread_t *thread, dxfg_auth_token_t *authToken)
const char * dxfg_AuthToken_getValue (graal_isolatethread_t *thread, dxfg_auth_token_t *authToken)

Detailed Description

Typedef Documentation

◆ dxfg_auth_token_t

typedef struct dxfg_auth_token_t dxfg_auth_token_t

◆ dxfg_executor_t

typedef struct dxfg_executor_t dxfg_executor_t

◆ dxfg_finalize_function

typedef void(*) dxfg_finalize_function(graal_isolatethread_t *thread, void *user_data)

◆ dxfg_input_stream_t

typedef struct dxfg_input_stream_t dxfg_input_stream_t

◆ dxfg_java_object_handler

typedef struct dxfg_java_object_handler dxfg_java_object_handler

◆ dxfg_java_object_handler_list

typedef struct dxfg_java_object_handler_list dxfg_java_object_handler_list

◆ dxfg_java_object_t

typedef struct dxfg_java_object_t dxfg_java_object_t

◆ dxfg_list

typedef struct dxfg_list dxfg_list

◆ dxfg_rounding_mode_t

Specifies a rounding behavior for numerical operations capable of discarding precision. Each rounding mode indicates how the least significant returned digit of a rounded result is to be calculated. If fewer digits are returned than the digits needed to represent the exact numerical result, the discarded digits will be referred to as the discarded fraction regardless the digits' contribution to the value of the number. In other words, considered as a numerical value, the discarded fraction could have an absolute value greater than one.

https://docs.oracle.com/en/java/javase/22/docs/api/java.base/java/math/RoundingMode.html

◆ dxfg_string_list

typedef struct dxfg_string_list dxfg_string_list

◆ dxfg_time_format_t

typedef struct dxfg_time_format_t dxfg_time_format_t

◆ dxfg_time_period_t

typedef struct dxfg_time_period_t dxfg_time_period_t

◆ dxfg_time_zone_t

typedef struct dxfg_time_zone_t dxfg_time_zone_t

Enumeration Type Documentation

◆ dxfg_rounding_mode_t

Specifies a rounding behavior for numerical operations capable of discarding precision. Each rounding mode indicates how the least significant returned digit of a rounded result is to be calculated. If fewer digits are returned than the digits needed to represent the exact numerical result, the discarded digits will be referred to as the discarded fraction regardless the digits' contribution to the value of the number. In other words, considered as a numerical value, the discarded fraction could have an absolute value greater than one.

https://docs.oracle.com/en/java/javase/22/docs/api/java.base/java/math/RoundingMode.html

Enumerator
DXFG_ROUNDING_MODE_UP 

Rounding mode to round away from zero. Always increments the digit prior to a non-zero discarded fraction. Note that this rounding mode never decreases the magnitude of the calculated value.

Example:

Rounding mode UP Examples
Input NumberInput rounded to one digit
with DXFG_ROUNDING_MODE_UP rounding
5.56
2.53
1.62
1.12
1.01
-1.0-1
-1.1-2
-1.6-2
-2.5-3
-5.5-6
DXFG_ROUNDING_MODE_DOWN 

Rounding mode to round towards zero. Never increments the digit prior to a discarded fraction (i.e., truncates). Note that this rounding mode never increases the magnitude of the calculated value.

Example:

Rounding mode DOWN Examples
Input NumberInput rounded to one digit
with DXFG_ROUNDING_MODE_DOWN rounding
5.55
2.52
1.61
1.11
1.01
-1.0-1
-1.1-1
-1.6-1
-2.5-2
-5.5-5
DXFG_ROUNDING_MODE_CEILING 

Rounding mode to round towards positive infinity. If the result is positive, behaves as for DXFG_ROUNDING_MODE_UP; if negative, behaves as for DXFG_ROUNDING_MODE_DOWN. Note that this rounding mode never decreases the calculated value.

Example:

Rounding mode CEILING Examples
Input NumberInput rounded to one digit
with DXFG_ROUNDING_MODE_CEILING rounding
5.56
2.53
1.62
1.12
1.01
-1.0-1
-1.1-1
-1.6-1
-2.5-2
-5.5-5
DXFG_ROUNDING_MODE_FLOOR 

Rounding mode to round towards negative infinity. If the result is positive, behave as for DXFG_ROUNDING_MODE_DOWN; if negative, behave as for DXFG_ROUNDING_MODE_UP. Note that this rounding mode never increases the calculated value.

Example:

Rounding mode FLOOR Examples
Input NumberInput rounded to one digit
with DXFG_ROUNDING_MODE_FLOOR rounding
5.55
2.52
1.61
1.11
1.01
-1.0-1
-1.1-2
-1.6-2
-2.5-3
-5.5-6
DXFG_ROUNDING_MODE_HALF_UP 

Rounding mode to round towards "nearest neighbor" unless both neighbors are equidistant, in which case round up. Behaves as for DXFG_ROUNDING_MODE_UP if the discarded fraction is <= 0.5; otherwise, behaves as for DXFG_ROUNDING_MODE_DOWN. Note that this is the rounding mode commonly taught at school.

Example:

Rounding mode HALF_UP Examples
Input NumberInput rounded to one digit
with DXFG_ROUNDING_MODE_HALF_UP rounding
5.56
2.53
1.62
1.11
1.01
-1.0-1
-1.1-1
-1.6-2
-2.5-3
-5.5-6
DXFG_ROUNDING_MODE_HALF_DOWN 

Rounding mode to round towards "nearest neighbor" unless both neighbors are equidistant, in which case round down. Behaves as for DXFG_ROUNDING_MODE_UP if the discarded fraction is > 0.5; otherwise, behaves as for DXFG_ROUNDING_MODE_DOWN.

Example:

Rounding mode HALF_DOWN Examples
Input NumberInput rounded to one digit
with DXFG_ROUNDING_MODE_HALF_DOWN rounding
5.55
2.52
1.62
1.11
1.01
-1.0-1
-1.1-1
-1.6-2
-2.5-2
-5.5-5
DXFG_ROUNDING_MODE_HALF_EVEN 

Rounding mode to round towards the "nearest neighbor" unless both neighbors are equidistant, in which case, round towards the even neighbor. Behaves as for DXFG_ROUNDING_MODE_HALF_UP if the digit to the left of the discarded fraction is odd; behaves as for DXFG_ROUNDING_MODE_HALF_DOWN if it's even. Note that this is the rounding mode that statistically minimizes cumulative error when applied repeatedly over a sequence of calculations. It is sometimes known as "Banker's rounding" and is chiefly used in the USA. This rounding mode is analogous to the rounding policy used for float and double arithmetic in Java.

Example:

Rounding mode HALF_EVEN Examples
Input NumberInput rounded to one digit
with DXFG_ROUNDING_MODE_HALF_EVEN rounding
5.56
2.52
1.62
1.11
1.01
-1.0-1
-1.1-1
-1.6-2
-2.5-2
-5.5-6
DXFG_ROUNDING_MODE_UNNECESSARY 

Rounding mode to assert that the requested operation has an exact result, hence no rounding is necessary. If this rounding mode is specified on an operation that yields an inexact result, an Java ArithmeticException is thrown.

Example:

Rounding mode UNNECESSARY Examples
Input NumberInput rounded to one digit
with DXFG_ROUNDING_MODE_UNNECESSARY rounding
5.5throw ArithmeticException
2.5throw ArithmeticException
1.6throw ArithmeticException
1.1throw ArithmeticException
1.01
-1.0-1
-1.1throw ArithmeticException
-1.6throw ArithmeticException
-2.5throw ArithmeticException
-5.5throw ArithmeticException

Function Documentation

◆ dxfg_AuthToken_createBasicToken()

dxfg_auth_token_t * dxfg_AuthToken_createBasicToken ( graal_isolatethread_t * thread,
const char * userPassword )

◆ dxfg_AuthToken_createBasicToken2()

dxfg_auth_token_t * dxfg_AuthToken_createBasicToken2 ( graal_isolatethread_t * thread,
const char * user,
const char * password )

◆ dxfg_AuthToken_createBasicTokenOrNull()

dxfg_auth_token_t * dxfg_AuthToken_createBasicTokenOrNull ( graal_isolatethread_t * thread,
const char * user,
const char * password )

◆ dxfg_AuthToken_createBearerToken()

dxfg_auth_token_t * dxfg_AuthToken_createBearerToken ( graal_isolatethread_t * thread,
const char * token )

◆ dxfg_AuthToken_createBearerTokenOrNull()

dxfg_auth_token_t * dxfg_AuthToken_createBearerTokenOrNull ( graal_isolatethread_t * thread,
const char * token )

◆ dxfg_AuthToken_createCustomToken()

dxfg_auth_token_t * dxfg_AuthToken_createCustomToken ( graal_isolatethread_t * thread,
const char * scheme,
const char * value )

◆ dxfg_AuthToken_getHttpAuthorization()

const char * dxfg_AuthToken_getHttpAuthorization ( graal_isolatethread_t * thread,
dxfg_auth_token_t * authToken )

◆ dxfg_AuthToken_getPassword()

const char * dxfg_AuthToken_getPassword ( graal_isolatethread_t * thread,
dxfg_auth_token_t * authToken )

◆ dxfg_AuthToken_getScheme()

const char * dxfg_AuthToken_getScheme ( graal_isolatethread_t * thread,
dxfg_auth_token_t * authToken )

◆ dxfg_AuthToken_getUser()

const char * dxfg_AuthToken_getUser ( graal_isolatethread_t * thread,
dxfg_auth_token_t * authToken )

◆ dxfg_AuthToken_getValue()

const char * dxfg_AuthToken_getValue ( graal_isolatethread_t * thread,
dxfg_auth_token_t * authToken )

◆ dxfg_AuthToken_valueOf()

dxfg_auth_token_t * dxfg_AuthToken_valueOf ( graal_isolatethread_t * thread,
const char * string )

◆ dxfg_ByteArrayInputStream_new()

dxfg_input_stream_t * dxfg_ByteArrayInputStream_new ( graal_isolatethread_t * thread,
const char * bytes,
int32_t size )

◆ dxfg_CList_JavaObjectHandler_release()

int32_t dxfg_CList_JavaObjectHandler_release ( graal_isolatethread_t * thread,
dxfg_java_object_handler_list * list )

◆ dxfg_CList_String_release()

int32_t dxfg_CList_String_release ( graal_isolatethread_t * thread,
dxfg_string_list * stringList )

◆ dxfg_Comparable_compareTo()

int32_t dxfg_Comparable_compareTo ( graal_isolatethread_t * thread,
dxfg_java_object_handler * object,
dxfg_java_object_handler * other )

◆ dxfg_ExecutorBaseOnConcurrentLinkedQueue_new()

dxfg_executor_t * dxfg_ExecutorBaseOnConcurrentLinkedQueue_new ( graal_isolatethread_t * thread)

◆ dxfg_ExecutorBaseOnConcurrentLinkedQueue_processAllPendingTasks()

int32_t dxfg_ExecutorBaseOnConcurrentLinkedQueue_processAllPendingTasks ( graal_isolatethread_t * thread,
dxfg_executor_t * executor )

◆ dxfg_Executors_newFixedThreadPool()

dxfg_executor_t * dxfg_Executors_newFixedThreadPool ( graal_isolatethread_t * thread,
int nThreads,
const char * nameThreads )

◆ dxfg_Executors_newScheduledThreadPool()

dxfg_executor_t * dxfg_Executors_newScheduledThreadPool ( graal_isolatethread_t * thread,
int nThreads,
const char * nameThreads )

◆ dxfg_gc()

int32_t dxfg_gc ( graal_isolatethread_t * thread)

◆ dxfg_JavaObjectHandler_array_release()

int32_t dxfg_JavaObjectHandler_array_release ( graal_isolatethread_t * thread,
const dxfg_java_object_handler ** handlersArray,
int32_t size )

Releases an array of handles (or simple structures containing only handle). Also frees up the memory occupied by these handles/structures with handles.

Sample:

// dxfg_cfi_value_t *values = {};
// int32_t size = {};
dxfg_JavaObjectHandler_array_release(isolate_thread, (const dxfg_java_object_handler **)values, size);
int32_t dxfg_JavaObjectHandler_array_release(graal_isolatethread_t *thread, const dxfg_java_object_handler **handlersArray, int32_t size)
Definition dxfg_javac.h:27
Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]handlersArrayThe array of handles.
[in]sizeA size of the array.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_get_and_clear_thread_exception_t() to determine if an exception was thrown.

◆ dxfg_JavaObjectHandler_clone()

int32_t dxfg_JavaObjectHandler_clone ( graal_isolatethread_t * thread,
dxfg_java_object_handler * javaObjectHandler,
dxfg_java_object_handler ** javaObjectHandlerClone )

Creates another reference to the Java object (also allocates a memory to the new handle's data structure).

Sample:

dxfg_cfi_value_t *values = {};
int32_t size = 0;
dxfg_cfi_value_t *clone_of_options_cfi_value = {};
// ...
dxfg_CFI_decipher(isolate_thread, cfi, &values, &size);
for (int32_t i = 0; i < size; i++) {
// ...
dxfg_cfi_value_t *cfi_value = (dxfg_cfi_value_t *)(&values[i].handler);
// ...
isolate_thread,
(dxfg_java_object_handler **)(&clone_of_options_cfi_value));
}
int32_t dxfg_CFI_decipher(graal_isolatethread_t *thread, dxfg_cfi_t *cfi, DXFG_OUT dxfg_cfi_value_t **values, DXFG_OUT int32_t *size)
int32_t dxfg_JavaObjectHandler_clone(graal_isolatethread_t *thread, dxfg_java_object_handler *javaObjectHandler, dxfg_java_object_handler **javaObjectHandlerClone)
Definition dxfg_glossary.h:106
Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]javaObjectHandlerA source of the object handle.
[out]javaObjectHandlerCloneA pointer to a clone of the object handle.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_get_and_clear_thread_exception_t() to determine if an exception was thrown. Use dxfg_JavaObjectHandler_release() to free the object clone handle.

◆ dxfg_JavaObjectHandler_release()

int32_t dxfg_JavaObjectHandler_release ( graal_isolatethread_t * thread,
dxfg_java_object_handler * handler )

Frees the memory occupied by the с data structure and release the reference to the java object.

If the handle is the last handle (see dxfg_JavaObjectHandler_clone()) of a listener created by a dxfg_*Listener_new function, the listener is deactivated (see dxfg_NativeListener_deactivate()): the function waits for the listener's callbacks that are in progress on other threads and after it returns the listener's function is not called anymore, so its user data can be freed. Remove the listener (e.g. dxfg_DXFeedSubscription_removeEventListener()) before releasing it, otherwise it stays added and does nothing.

Do not hold the locks that the listener's function may take while releasing the listener: it may deadlock. Releasing a listener from its own callback is allowed (the function does not wait for that call).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]handlerThe java object handle to free.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_get_and_clear_thread_exception_t() to determine if an exception was thrown.

◆ dxfg_NativeListener_deactivate()

int32_t dxfg_NativeListener_deactivate ( graal_isolatethread_t * thread,
dxfg_java_object_handler * listener )

Deactivates a listener created by a dxfg_*Listener_new function (e.g. dxfg_DXFeedEventListener_new(), dxfg_PropertyChangeListener_new()) regardless of the number of its handles: waits for the listener's callbacks that are in progress on other threads, after that the listener's function is not called anymore, so its user data can be freed. The listener stays added where it was added, but does nothing, and cannot be activated again.

Releasing the last handle of the listener with dxfg_JavaObjectHandler_release() deactivates it as well. Do not hold the locks that the listener's function may take while deactivating the listener: it may deadlock. Deactivating a listener from its own callback is allowed (the function does not wait for that call).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]listenerThe listener handle.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error (e.g. the object is not a listener created by a dxfg_*Listener_new function). Use dxfg_get_and_clear_thread_exception_t() to determine if an exception was thrown.

◆ dxfg_Object_equals()

int32_t dxfg_Object_equals ( graal_isolatethread_t * thread,
dxfg_java_object_handler * object,
dxfg_java_object_handler * other )

◆ dxfg_Object_finalize()

int32_t dxfg_Object_finalize ( graal_isolatethread_t * thread,
dxfg_java_object_handler * handler,
dxfg_finalize_function finalize,
void * user_data )

Registers a function that is called with the user data after the Java object is garbage collected (the collected objects are checked about once a second). It does not stop the callbacks of a listener: see dxfg_NativeListener_deactivate() for that.

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]handlerThe java object handle.
[in]finalizeThe function to call.
[in]user_dataThe user data to pass to the function.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_get_and_clear_thread_exception_t() to determine if an exception was thrown.

◆ dxfg_Object_hashCode()

int32_t dxfg_Object_hashCode ( graal_isolatethread_t * thread,
dxfg_java_object_handler * object )

◆ dxfg_Object_new()

int32_t dxfg_Object_new ( graal_isolatethread_t * thread,
DXFG_OUT dxfg_java_object_handler ** object )

Creates the new Java Object.

Parameters
[in]threadThe current GraalVM Isolate's thread.
[out]objectThe result object.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_get_and_clear_thread_exception_t() to determine if an exception was thrown. Use dxfg_JavaObjectHandler_release() to free the object handle.

◆ dxfg_Object_toString()

const char * dxfg_Object_toString ( graal_isolatethread_t * thread,
dxfg_java_object_handler * object )

◆ dxfg_String_release()

int32_t dxfg_String_release ( graal_isolatethread_t * thread,
const char * string )

◆ dxfg_throw_exception()

dxfg_java_object_handler * dxfg_throw_exception ( graal_isolatethread_t * thread)

◆ dxfg_TimeFormat_asFullIso()

dxfg_time_format_t * dxfg_TimeFormat_asFullIso ( graal_isolatethread_t * thread,
dxfg_time_format_t * timeFormat )

◆ dxfg_TimeFormat_DEFAULT()

dxfg_time_format_t * dxfg_TimeFormat_DEFAULT ( graal_isolatethread_t * thread)

◆ dxfg_TimeFormat_format()

const char * dxfg_TimeFormat_format ( graal_isolatethread_t * thread,
dxfg_time_format_t * timeFormat,
int64_t value )

◆ dxfg_TimeFormat_getInstance()

dxfg_time_format_t * dxfg_TimeFormat_getInstance ( graal_isolatethread_t * thread,
dxfg_time_zone_t * timeZone )

◆ dxfg_TimeFormat_getTimeZone()

dxfg_time_zone_t * dxfg_TimeFormat_getTimeZone ( graal_isolatethread_t * thread,
dxfg_time_format_t * timeFormat )

◆ dxfg_TimeFormat_GMT()

dxfg_time_format_t * dxfg_TimeFormat_GMT ( graal_isolatethread_t * thread)

◆ dxfg_TimeFormat_parse()

int64_t dxfg_TimeFormat_parse ( graal_isolatethread_t * thread,
dxfg_time_format_t * timeFormat,
const char * value )

◆ dxfg_TimeFormat_withMillis()

dxfg_time_format_t * dxfg_TimeFormat_withMillis ( graal_isolatethread_t * thread,
dxfg_time_format_t * timeFormat )

◆ dxfg_TimeFormat_withTimeZone()

dxfg_time_format_t * dxfg_TimeFormat_withTimeZone ( graal_isolatethread_t * thread,
dxfg_time_format_t * timeFormat )

◆ dxfg_TimePeriod_getNanos()

int64_t dxfg_TimePeriod_getNanos ( graal_isolatethread_t * thread,
dxfg_time_period_t * timePeriod )

◆ dxfg_TimePeriod_getSeconds()

int32_t dxfg_TimePeriod_getSeconds ( graal_isolatethread_t * thread,
dxfg_time_period_t * timePeriod )

◆ dxfg_TimePeriod_getTime()

int64_t dxfg_TimePeriod_getTime ( graal_isolatethread_t * thread,
dxfg_time_period_t * timePeriod )

◆ dxfg_TimePeriod_UNLIMITED()

dxfg_time_period_t * dxfg_TimePeriod_UNLIMITED ( graal_isolatethread_t * thread)

◆ dxfg_TimePeriod_valueOf()

dxfg_time_period_t * dxfg_TimePeriod_valueOf ( graal_isolatethread_t * thread,
int64_t value )

◆ dxfg_TimePeriod_valueOf2()

dxfg_time_period_t * dxfg_TimePeriod_valueOf2 ( graal_isolatethread_t * thread,
const char * value )

◆ dxfg_TimePeriod_ZERO()

dxfg_time_period_t * dxfg_TimePeriod_ZERO ( graal_isolatethread_t * thread)

◆ dxfg_TimeZone_getDefault()

dxfg_time_zone_t * dxfg_TimeZone_getDefault ( graal_isolatethread_t * thread)

◆ dxfg_TimeZone_getDisplayName()

const char * dxfg_TimeZone_getDisplayName ( graal_isolatethread_t * thread,
dxfg_time_zone_t * timeZone )

◆ dxfg_TimeZone_getDisplayName2()

const char * dxfg_TimeZone_getDisplayName2 ( graal_isolatethread_t * thread,
dxfg_time_zone_t * timeZone,
int32_t daylight,
int32_t style )

◆ dxfg_TimeZone_getDSTSavings()

int32_t dxfg_TimeZone_getDSTSavings ( graal_isolatethread_t * thread,
dxfg_time_zone_t * timeZone )

◆ dxfg_TimeZone_getID()

const char * dxfg_TimeZone_getID ( graal_isolatethread_t * thread,
dxfg_time_zone_t * timeZone )

◆ dxfg_TimeZone_getOffset()

int32_t dxfg_TimeZone_getOffset ( graal_isolatethread_t * thread,
dxfg_time_zone_t * timeZone,
int64_t date )

◆ dxfg_TimeZone_getOffset2()

int32_t dxfg_TimeZone_getOffset2 ( graal_isolatethread_t * thread,
dxfg_time_zone_t * timeZone,
int32_t era,
int32_t year,
int32_t month,
int32_t day,
int32_t dayOfWeek,
int32_t milliseconds )

◆ dxfg_TimeZone_getRawOffset()

int32_t dxfg_TimeZone_getRawOffset ( graal_isolatethread_t * thread,
dxfg_time_zone_t * timeZone )

◆ dxfg_TimeZone_getTimeZone()

dxfg_time_zone_t * dxfg_TimeZone_getTimeZone ( graal_isolatethread_t * thread,
const char * ID )

◆ dxfg_TimeZone_hasSameRules()

int32_t dxfg_TimeZone_hasSameRules ( graal_isolatethread_t * thread,
dxfg_time_zone_t * timeZone,
dxfg_time_zone_t * other )

◆ dxfg_TimeZone_inDaylightTime()

int32_t dxfg_TimeZone_inDaylightTime ( graal_isolatethread_t * thread,
dxfg_time_zone_t * timeZone,
int64_t date )

◆ dxfg_TimeZone_observesDaylightTime()

int32_t dxfg_TimeZone_observesDaylightTime ( graal_isolatethread_t * thread,
dxfg_time_zone_t * timeZone )

◆ dxfg_TimeZone_setID()

int32_t dxfg_TimeZone_setID ( graal_isolatethread_t * thread,
dxfg_time_zone_t * timeZone,
const char * ID )

◆ dxfg_TimeZone_setRawOffset()

int32_t dxfg_TimeZone_setRawOffset ( graal_isolatethread_t * thread,
dxfg_time_zone_t * timeZone,
int32_t offsetMillis )

◆ dxfg_TimeZone_useDaylightTime()

int32_t dxfg_TimeZone_useDaylightTime ( graal_isolatethread_t * thread,
dxfg_time_zone_t * timeZone )