|
dxFeed Graal Native SDK 3.14.0-rc2
|
Data Structures | |
| struct | dxfg_indexed_event_tx_model_t |
| struct | dxfg_indexed_event_tx_model_builder_t |
| struct | dxfg_indexed_event_tx_model_listener_t |
Typedefs | |
| typedef struct dxfg_indexed_event_tx_model_t | dxfg_indexed_event_tx_model_t |
| typedef struct dxfg_indexed_event_tx_model_builder_t | dxfg_indexed_event_tx_model_builder_t |
| typedef struct dxfg_indexed_event_tx_model_listener_t | dxfg_indexed_event_tx_model_listener_t |
| typedef void(*) | dxfg_IndexedEventTxModel_Listener_eventsReceived_f(graal_isolatethread_t *thread, dxfg_event_type_list *events, int32_t isSnapshot, void *userData) |
| typedef struct dxfg_indexed_event_tx_model_builder_t dxfg_indexed_event_tx_model_builder_t |
The IndexedEventTxModel.Builder instance's handle.
| typedef struct dxfg_indexed_event_tx_model_listener_t dxfg_indexed_event_tx_model_listener_t |
The IndexedEventTxModel.Listener instance's handle.
| typedef struct dxfg_indexed_event_tx_model_t dxfg_indexed_event_tx_model_t |
The IndexedEventTxModel instance's handle.
| typedef void(*) dxfg_IndexedEventTxModel_Listener_eventsReceived_f(graal_isolatethread_t *thread, dxfg_event_type_list *events, int32_t isSnapshot, void *userData) |
Invoked when a complete transaction (one or more) is received.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | events | The list of received events representing one or more completed transactions. |
| [in] | isSnapshot | true (1) if the events form a snapshot; false (0) otherwise. |
| [in] | userData | Passed to the created listener user data. |
| int32_t dxfg_IndexedEventTxModel_Builder_build | ( | graal_isolatethread_t * | thread, |
| dxfg_indexed_event_tx_model_builder_t * | builder, | ||
| DXFG_OUT dxfg_indexed_event_tx_model_t ** | model ) |
Builds a new instance of dxfg_indexed_event_tx_model_t with the provided configuration.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | builder | The current builder. |
| [out] | model | The created model. |
| int32_t dxfg_IndexedEventTxModel_Builder_new | ( | graal_isolatethread_t * | thread, |
| dxfg_event_clazz_t | eventType, | ||
| DXFG_OUT dxfg_indexed_event_tx_model_builder_t ** | builder ) |
Constructs a new builder for the specified event type.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | eventType | The type of indexed events processed by the model. |
| [out] | builder | A new builder instance handle. |
| int32_t dxfg_IndexedEventTxModel_Builder_withAggregationPeriod | ( | graal_isolatethread_t * | thread, |
| dxfg_indexed_event_tx_model_builder_t * | builder, | ||
| dxfg_time_period_t * | aggregationPeriod ) |
Sets the aggregation period for data that limits the rate of data notifications. For example, setting the value to 0.1s limits notification to once every 100ms (at most 10 per second). This value can be changed later, after the model has been built using the subscription controller.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | builder | The current builder. |
| [in] | aggregationPeriod | The aggregation period for data. |
| int32_t dxfg_IndexedEventTxModel_Builder_withAggregationPeriodMillis | ( | graal_isolatethread_t * | thread, |
| dxfg_indexed_event_tx_model_builder_t * | builder, | ||
| int64_t | aggregationPeriod ) |
Sets the aggregation period for data that limits the rate of data notifications. For example, setting the value to 100 limits notification to once every 100ms (at most 10 per second). This value can be changed later, after the model has been built using the subscription controller.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | builder | The current builder. |
| [in] | aggregationPeriod | The aggregation period for data. |
| int32_t dxfg_IndexedEventTxModel_Builder_withEventsBatchLimit | ( | graal_isolatethread_t * | thread, |
| dxfg_indexed_event_tx_model_builder_t * | builder, | ||
| int32_t | eventsBatchLimit ) |
Sets the maximum number of events in the single notification of dxfg_IndexedEventTxModel_Listener_eventsReceived_f. This value can be exceeded if the size of the received transaction exceeds the set limit. This value can be changed later, after the model has been built using the subscription controller.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | builder | The current builder. |
| [in] | eventsBatchLimit | The notification events limit. |
| int32_t dxfg_IndexedEventTxModel_Builder_withExecutor | ( | graal_isolatethread_t * | thread, |
| dxfg_indexed_event_tx_model_builder_t * | builder, | ||
| dxfg_executor_t * | executor ) |
Sets the executor for processing listener notifications. The default executor for all models is the endpoint's one (see dxfg_DXEndpoint_Builder_withExecutor()). This executor can be changed later, after the model has been built using the subscription controller.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | builder | The current builder. |
| [in] | executor | The executor instance. |
| int32_t dxfg_IndexedEventTxModel_Builder_withFeed | ( | graal_isolatethread_t * | thread, |
| dxfg_indexed_event_tx_model_builder_t * | builder, | ||
| dxfg_feed_t * | feed ) |
Sets the feed for the model being created.
The feed can also be attached later, after the model has been built using the subscription controller.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | builder | The current builder. |
| [in] | feed | The feed. |
| int32_t dxfg_IndexedEventTxModel_Builder_withListener | ( | graal_isolatethread_t * | thread, |
| dxfg_indexed_event_tx_model_builder_t * | builder, | ||
| dxfg_indexed_event_tx_model_listener_t * | listener ) |
Sets the listener for transaction notifications. The notification is invoked from a separate thread via the executor. The listener cannot be added or changed after the model has been built.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | builder | The current builder. |
| [in] | listener | The model listener. |
| int32_t dxfg_IndexedEventTxModel_Builder_withSource | ( | graal_isolatethread_t * | thread, |
| dxfg_indexed_event_tx_model_builder_t * | builder, | ||
| dxfg_indexed_event_source_t * | source ) |
Sets the source to subscribe to.
The source cannot be added or changed after the model has been built.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | builder | The current builder. |
| [in] | source | The specified source. |
| int32_t dxfg_IndexedEventTxModel_Builder_withSymbol | ( | graal_isolatethread_t * | thread, |
| dxfg_indexed_event_tx_model_builder_t * | builder, | ||
| dxfg_symbol_t * | symbol ) |
Sets the subscription symbol and its source (dxfg_indexed_event_subscription_symbol_t) for the model being created.
This symbol and source cannot be added or changed after the model has been built.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | builder | The current builder. |
| [in] | symbol | The subscription symbol (dxfg_indexed_event_subscription_symbol_t). |
| int32_t dxfg_IndexedEventTxModel_Builder_withSymbol2 | ( | graal_isolatethread_t * | thread, |
| dxfg_indexed_event_tx_model_builder_t * | builder, | ||
| const char * | symbol ) |
Sets the subscription symbol for the model being created.
The symbol cannot be added or changed after the model has been built.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | builder | The current builder. |
| [in] | symbol | The subscription symbol. |
| int32_t dxfg_IndexedEventTxModel_close | ( | graal_isolatethread_t * | thread, |
| dxfg_indexed_event_tx_model_t * | model ) |
Closes this model: it is detached from the feed for good and stops the notifications.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The current model. |
| int32_t dxfg_IndexedEventTxModel_getIndexedEventSubscriptionSymbol | ( | graal_isolatethread_t * | thread, |
| dxfg_indexed_event_tx_model_t * | model, | ||
| DXFG_OUT dxfg_symbol_t ** | symbol ) |
Returns the indexed event subscription symbol associated with this model.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The current model. |
| [out] | symbol | The indexed event subscription symbol associated with this model. |
| int32_t dxfg_IndexedEventTxModel_getSource | ( | graal_isolatethread_t * | thread, |
| dxfg_indexed_event_tx_model_t * | model, | ||
| DXFG_OUT dxfg_indexed_event_source_t ** | source ) |
Returns the source associated with this model.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The current model. |
| [out] | source | The source associated with this model. |
| int32_t dxfg_IndexedEventTxModel_getSubscriptionController | ( | graal_isolatethread_t * | thread, |
| dxfg_indexed_event_tx_model_t * | model, | ||
| DXFG_OUT dxfg_subscription_controller_t ** | subscriptionController ) |
Returns the subscription controller for the underlying subscription.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The current model. |
| [out] | subscriptionController | The subscription controller for the underlying subscription. |
| int32_t dxfg_IndexedEventTxModel_getSymbol | ( | graal_isolatethread_t * | thread, |
| dxfg_indexed_event_tx_model_t * | model, | ||
| DXFG_OUT const char ** | symbol ) |
Returns the symbol associated with this model.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The current model. |
| [out] | symbol | The symbol associated with this model. |
| int32_t dxfg_IndexedEventTxModel_isClosed | ( | graal_isolatethread_t * | thread, |
| dxfg_indexed_event_tx_model_t * | model, | ||
| DXFG_OUT int32_t * | isClosed ) |
Returns whether this model is closed.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The current model. |
| [out] | isClosed | true (1) if this model is closed; false (0) otherwise. |
| int32_t dxfg_IndexedEventTxModel_Listener_new | ( | graal_isolatethread_t * | thread, |
| dxfg_IndexedEventTxModel_Listener_eventsReceived_f | eventsReceived, | ||
| void * | userData, | ||
| DXFG_OUT dxfg_indexed_event_tx_model_listener_t ** | listener ) |
Creates a new listener for the model.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | eventsReceived | The callback function pointer. |
| [in] | userData | The user data which will be passed to callback. |
| [out] | listener | The new listener handle. |
| int32_t dxfg_IndexedEventTxModel_newBuilder | ( | graal_isolatethread_t * | thread, |
| dxfg_event_clazz_t | eventType, | ||
| DXFG_OUT dxfg_indexed_event_tx_model_builder_t ** | builder ) |
Factory method to create a new builder for this model.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | eventType | The type of indexed events processed by the model. |
| [out] | builder | A new builder instance handle. |