|
dxFeed Graal Native SDK 3.9.0
|
The recommended way to create an endpoint: the builder allows to set the role, the name and the properties (see DXEndpoint.Builder). Every dxfg_DXEndpoint_Builder_build() call creates a new endpoint.
| dxfg_endpoint_t * dxfg_DXEndpoint_Builder_build | ( | graal_isolatethread_t * | thread, |
| dxfg_endpoint_builder_t * | builder ) |
Builds a new endpoint with the builder's settings.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | builder | The builder. |
| int32_t dxfg_DXEndpoint_Builder_supportsProperty | ( | graal_isolatethread_t * | thread, |
| dxfg_endpoint_builder_t * | builder, | ||
| const char * | key ) |
| int32_t dxfg_DXEndpoint_Builder_withExecutor | ( | graal_isolatethread_t * | thread, |
| dxfg_endpoint_builder_t * | builder, | ||
| dxfg_executor_t * | executor ) |
Sets the executor of the notifications of the endpoints built by this builder: event processing, state changes, etc. (DXEndpoint.Builder.withExecutor(executor)). Use it instead of the deprecated dxfg_DXEndpoint_executor().
By default, the endpoint uses a thread pool with the size equal to the number of available processors (the dxfeed.threadPoolSize property for the feed roles and dxpublisher.threadPoolSize for the publisher). The executor must not reject the submitted tasks.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | builder | The builder. |
| [in] | executor | The executor (e.g. from dxfg_Executors_newFixedThreadPool()) or NULL to use the default one. The builder does not take the handle: free it with dxfg_JavaObjectHandler_release() when it is no longer needed. |
| int32_t dxfg_DXEndpoint_Builder_withName | ( | graal_isolatethread_t * | thread, |
| dxfg_endpoint_builder_t * | builder, | ||
| const char * | name ) |
| int32_t dxfg_DXEndpoint_Builder_withProperties | ( | graal_isolatethread_t * | thread, |
| dxfg_endpoint_builder_t * | builder, | ||
| const char * | file_path ) |
| int32_t dxfg_DXEndpoint_Builder_withProperty | ( | graal_isolatethread_t * | thread, |
| dxfg_endpoint_builder_t * | builder, | ||
| const char * | key, | ||
| const char * | value ) |
| int32_t dxfg_DXEndpoint_Builder_withRole | ( | graal_isolatethread_t * | thread, |
| dxfg_endpoint_builder_t * | builder, | ||
| dxfg_endpoint_role_t | role ) |
| dxfg_endpoint_builder_t * dxfg_DXEndpoint_newBuilder | ( | graal_isolatethread_t * | thread | ) |
Creates a new endpoint builder.
| [in] | thread | The current GraalVM Isolate's thread. |