|
dxFeed Graal Native SDK 3.9.0
|
Functions | |
| int32_t | dxfg_system_set_property (graal_isolatethread_t *thread, const char *key, const char *value) |
| Sets the system property indicated by the specified key. | |
| const char * | dxfg_system_get_property (graal_isolatethread_t *thread, const char *key) |
| Gets the system property indicated by the specified key. | |
| int32_t | dxfg_system_release_property (graal_isolatethread_t *thread, const char *value) |
| Frees pointer that was previously allocated in Java method (by UnmanagedMemory). | |
| int32_t | dxfg_system_close_all_and_await_termination (graal_isolatethread_t *thread) |
| Closes all the endpoints and instrument profile connections created through the SDK in this isolate and waits for the termination of the endpoints. | |
| int32_t dxfg_system_close_all_and_await_termination | ( | graal_isolatethread_t * | thread | ) |
Closes all the endpoints and instrument profile connections created through the SDK in this isolate and waits for the termination of the endpoints.
It includes the default endpoints of dxfg_DXEndpoint_getInstance(), dxfg_DXFeed_getInstance(), dxfg_DXPublisher_getInstance() and dxfg_OnDemandService_getInstance(). The handles of the objects stay valid and must be released as usual.
Call it before graal_tear_down_isolate() (or before the process exits): the threads of an open endpoint ("DXEndpoint-DXExecutorThread-N", etc.) do not stop on Thread.interrupt(), so graal_tear_down_isolate() waits for them forever while any endpoint is open. To stop the calls of the native listeners, release them (see dxfg_JavaObjectHandler_release()) before tearing down the isolate. To find the threads that block the tear-down, pass the -XX:TearDownWarningSeconds=<seconds> option in graal_create_isolate_params_t.argv.
Recommended shutdown sequence:
| [in] | thread | The current GraalVM Isolate's thread. |
| const char * dxfg_system_get_property | ( | graal_isolatethread_t * | thread, |
| const char * | key ) |
Gets the system property indicated by the specified key.
| int32_t dxfg_system_release_property | ( | graal_isolatethread_t * | thread, |
| const char * | value ) |
Frees pointer that was previously allocated in Java method (by UnmanagedMemory).
| int32_t dxfg_system_set_property | ( | graal_isolatethread_t * | thread, |
| const char * | key, | ||
| const char * | value ) |
Sets the system property indicated by the specified key.
The properties that configure endpoints must be set before the first endpoint is created. For example: