|
dxFeed Graal Native SDK 3.9.0
|
Data Structures | |
| struct | dxfg_subscription_controller_t |
Typedefs | |
| typedef struct dxfg_feed_t | dxfg_feed_t |
| typedef struct dxfg_subscription_controller_t | dxfg_subscription_controller_t |
| typedef struct dxfg_feed_t dxfg_feed_t |
| typedef struct dxfg_subscription_controller_t dxfg_subscription_controller_t |
The SubscriptionController instance's handle.
| int32_t dxfg_SubscriptionController_attach | ( | graal_isolatethread_t * | thread, |
| dxfg_subscription_controller_t * | subscriptionController, | ||
| dxfg_feed_t * | feed ) |
Attaches the underlying subscription to the specified feed.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | subscriptionController | The subscription controller handle. |
| [in] | feed | The feed to attach to. |
| int32_t dxfg_SubscriptionController_detach | ( | graal_isolatethread_t * | thread, |
| dxfg_subscription_controller_t * | subscriptionController, | ||
| dxfg_feed_t * | feed ) |
Detaches the underlying subscription from the specified feed.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | subscriptionController | The subscription controller handle. |
| [in] | feed | The feed to detach from. |
| int32_t dxfg_SubscriptionController_getAggregationPeriod | ( | graal_isolatethread_t * | thread, |
| dxfg_subscription_controller_t * | subscriptionController, | ||
| DXFG_OUT dxfg_time_period_t ** | aggregationPeriod ) |
Returns the aggregation period for data for this underlying subscription.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | subscriptionController | The subscription controller handle. |
| [out] | aggregationPeriod | The aggregation period for data, represented as a TimePeriod object. |
| int32_t dxfg_SubscriptionController_getAggregationPeriodMillis | ( | graal_isolatethread_t * | thread, |
| dxfg_subscription_controller_t * | subscriptionController, | ||
| DXFG_OUT int64_t * | aggregationPeriod ) |
Returns the aggregation period for data for this underlying subscription in millis.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | subscriptionController | The subscription controller handle. |
| [out] | aggregationPeriod | The aggregation period for data, represented as a timestamp in millis. |
| int32_t dxfg_SubscriptionController_getEventsBatchLimit | ( | graal_isolatethread_t * | thread, |
| dxfg_subscription_controller_t * | subscriptionController, | ||
| DXFG_OUT int32_t * | eventsBatchLimit ) |
Returns maximum number of events in the single notification of the listener. This is not a strict guarantee, some implementations may exceed the limit.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | subscriptionController | The subscription controller handle. |
| [out] | eventsBatchLimit | The maximum number of events in the single notification of the listener. |
| int32_t dxfg_SubscriptionController_getExecutor | ( | graal_isolatethread_t * | thread, |
| dxfg_subscription_controller_t * | subscriptionController, | ||
| DXFG_OUT dxfg_executor_t ** | executor ) |
Returns executor for processing event notifications on this underlying subscription.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | subscriptionController | The subscription controller handle. |
| [out] | executor | The executor for processing event notifications on this underlying subscription. Or NULL if the default executor is used. |
| int32_t dxfg_SubscriptionController_setAggregationPeriod | ( | graal_isolatethread_t * | thread, |
| dxfg_subscription_controller_t * | subscriptionController, | ||
| 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). The new aggregation period will take effect during the next iteration of data notification.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | subscriptionController | The subscription controller handle. |
| [in] | aggregationPeriod | The aggregation period for data. |
| int32_t dxfg_SubscriptionController_setAggregationPeriodMillis | ( | graal_isolatethread_t * | thread, |
| dxfg_subscription_controller_t * | subscriptionController, | ||
| 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). The new aggregation period will take effect during the next iteration of data notification.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | subscriptionController | The subscription controller handle. |
| [in] | aggregationPeriod | The aggregation period for data. |
| int32_t dxfg_SubscriptionController_setEventsBatchLimit | ( | graal_isolatethread_t * | thread, |
| dxfg_subscription_controller_t * | subscriptionController, | ||
| int32_t | eventsBatchLimit ) |
Sets maximum number of events in the single notification of the listener. This is not a strict guarantee, some implementations may exceed the limit.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | subscriptionController | The subscription controller handle. |
| [in] | eventsBatchLimit | The notification events limit |
| int32_t dxfg_SubscriptionController_setExecutor | ( | graal_isolatethread_t * | thread, |
| dxfg_subscription_controller_t * | subscriptionController, | ||
| dxfg_executor_t * | executor ) |
Changes executor for processing event notifications on this underlying subscription.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | subscriptionController | The subscription controller handle. |
| [out] | executor | The executor for processing event notifications on this underlying subscription. Or NULL if the default executor is used. |