|
dxFeed Graal Native SDK 3.14.0-rc2
|
The v4 functions of dxfg_feed.h and the v4 names of its types (see the group Feed (v4)). More...
#include "dxfg_feed.h"#include "dxfg_v4_common.h"#include "dxfg_v4_events.h"#include "dxfg_v4_catch_exception.h"#include "dxfg_v4_javac.h"Go to the source code of this file.
Typedefs | |
| typedef dxfg_subscription_t | dxfg_v4_subscription_t |
| A handle of a Java DXFeedSubscription object; release it with dxfg_JavaObjectHandler_release(). | |
| typedef dxfg_time_series_subscription_t | dxfg_v4_time_series_subscription_t |
| A handle of a Java DXFeedTimeSeriesSubscription object; release it with dxfg_JavaObjectHandler_release(). | |
| typedef dxfg_executor_t | dxfg_v4_executor_t |
| A handle of a Java Executor object; release it with dxfg_JavaObjectHandler_release(). | |
| typedef dxfg_feed_t | dxfg_v4_feed_t |
| A handle of a Java DXFeed object; release it with dxfg_JavaObjectHandler_release(). | |
| typedef dxfg_promise_t | dxfg_v4_promise_t |
| A handle of a Java Promise object; release it with dxfg_JavaObjectHandler_release(). | |
| typedef dxfg_promise_list | dxfg_v4_promise_list |
| A list of promise handles. | |
| typedef dxfg_promise_events_t | dxfg_v4_promise_events_t |
| A handle of a Java Promise object whose result is a list of events; release it with dxfg_JavaObjectHandler_release(). | |
| typedef dxfg_promise_event_t | dxfg_v4_promise_event_t |
| A handle of a Java Promise object whose result is an event; release it with dxfg_JavaObjectHandler_release(). | |
| typedef dxfg_promise_handler_function | dxfg_v4_promise_handler_function |
| The function that is called when a promise is done. | |
Functions | |
| int32_t | dxfg_v4_DXFeed_getInstance (graal_isolatethread_t *thread, DXFG_OUT dxfg_v4_feed_t **feed) |
| Returns the feed of the default endpoint of the process. | |
| int32_t | dxfg_v4_DXFeed_createSubscription (graal_isolatethread_t *thread, dxfg_v4_feed_t *feed, dxfg_v4_event_clazz_t eventClazz, DXFG_OUT dxfg_v4_subscription_t **subscription) |
| Creates a subscription for the events of one class and attaches it to the feed. | |
| int32_t | dxfg_v4_DXFeed_createSubscriptionWithEventTypes (graal_isolatethread_t *thread, dxfg_v4_feed_t *feed, dxfg_v4_event_clazz_list *eventClazzes, DXFG_OUT dxfg_v4_subscription_t **subscription) |
| Creates a subscription for the events of several classes and attaches it to the feed. | |
| int32_t | dxfg_v4_DXFeed_createTimeSeriesSubscription (graal_isolatethread_t *thread, dxfg_v4_feed_t *feed, dxfg_v4_event_clazz_t eventClazz, DXFG_OUT dxfg_v4_time_series_subscription_t **timeSeriesSubscription) |
| Creates a time series subscription for the events of one class and attaches it to the feed. | |
| int32_t | dxfg_v4_DXFeed_createTimeSeriesSubscriptionWithEventTypes (graal_isolatethread_t *thread, dxfg_v4_feed_t *feed, dxfg_v4_event_clazz_list *eventClazzes, DXFG_OUT dxfg_v4_time_series_subscription_t **timeSeriesSubscription) |
| Creates a time series subscription for the events of several classes and attaches it to the feed. | |
| int32_t | dxfg_v4_DXFeed_attachSubscription (graal_isolatethread_t *thread, dxfg_v4_feed_t *feed, dxfg_v4_subscription_t *sub) |
| Attaches the subscription to the feed. | |
| int32_t | dxfg_v4_DXFeed_detachSubscription (graal_isolatethread_t *thread, dxfg_v4_feed_t *feed, dxfg_v4_subscription_t *sub) |
| Detaches the subscription from the feed. | |
| int32_t | dxfg_v4_DXFeed_detachSubscriptionAndClear (graal_isolatethread_t *thread, dxfg_v4_feed_t *feed, dxfg_v4_subscription_t *sub) |
| Detaches the subscription from the feed and clears the data that was delivered to the subscription. | |
| int32_t | dxfg_v4_DXFeed_getLastEventIfSubscribed (graal_isolatethread_t *thread, dxfg_v4_feed_t *feed, dxfg_v4_event_clazz_t eventClazz, dxfg_v4_symbol_t *symbol, DXFG_OUT dxfg_v4_event_type_t **event) |
| Returns the last event for the event class and symbol if there is a subscription for them. | |
| int32_t | dxfg_v4_DXFeed_getIndexedEventsIfSubscribed (graal_isolatethread_t *thread, dxfg_v4_feed_t *feed, dxfg_v4_event_clazz_t eventClazz, dxfg_v4_symbol_t *symbol, const char *source, DXFG_OUT dxfg_v4_event_type_list **events) |
| Returns the indexed events for the event class, symbol and source if there is a subscription for them. | |
| int32_t | dxfg_v4_DXFeed_getTimeSeriesIfSubscribed (graal_isolatethread_t *thread, dxfg_v4_feed_t *feed, dxfg_v4_event_clazz_t eventClazz, dxfg_v4_symbol_t *symbol, int64_t from_time, int64_t to_time, DXFG_OUT dxfg_v4_event_type_list **events) |
| Returns the time series events for the event class, symbol and time range if there is a subscription for them. | |
| int32_t | dxfg_v4_DXFeed_getLastEvent (graal_isolatethread_t *thread, dxfg_v4_feed_t *feed, const dxfg_v4_event_type_t *event, DXFG_OUT dxfg_v4_event_type_t **lastEvent) |
| Gets the last event for the type and symbol of the given event. | |
| int32_t | dxfg_v4_DXFeed_getLastEvents (graal_isolatethread_t *thread, dxfg_v4_feed_t *feed, const dxfg_v4_event_type_list *events, DXFG_OUT dxfg_v4_event_type_list **lastEvents) |
| The bulk version of dxfg_v4_DXFeed_getLastEvent(): gets a new list with the last event for every event of the given list, in the same order. | |
| int32_t | dxfg_v4_DXFeed_getLastEventPromise (graal_isolatethread_t *thread, dxfg_v4_feed_t *feed, dxfg_v4_event_clazz_t eventClazz, dxfg_v4_symbol_t *symbol, DXFG_OUT dxfg_v4_promise_event_t **promise) |
| Requests the last event for the event class and symbol and returns the promise of the result. | |
| int32_t | dxfg_v4_DXFeed_getLastEventsPromises (graal_isolatethread_t *thread, dxfg_v4_feed_t *feed, dxfg_v4_event_clazz_t eventClazz, dxfg_v4_symbol_list *symbols, DXFG_OUT dxfg_v4_promise_list **promises) |
| The bulk version of dxfg_v4_DXFeed_getLastEventPromise(): requests the last events for one event class and several symbols. | |
| int32_t | dxfg_v4_DXFeed_getIndexedEventsPromise (graal_isolatethread_t *thread, dxfg_v4_feed_t *feed, dxfg_v4_event_clazz_t eventClazz, dxfg_v4_symbol_t *symbol, dxfg_v4_indexed_event_source_t *source, DXFG_OUT dxfg_v4_promise_events_t **promise) |
| Requests the indexed events for the event class, symbol and source and returns the promise of the result. | |
| int32_t | dxfg_v4_DXFeed_getTimeSeriesPromise (graal_isolatethread_t *thread, dxfg_v4_feed_t *feed, dxfg_v4_event_clazz_t clazz, dxfg_v4_symbol_t *symbol, int64_t fromTime, int64_t toTime, DXFG_OUT dxfg_v4_promise_events_t **promise) |
| Requests the time series events for the event class, symbol and time range and returns the promise of the result. | |
| int32_t | dxfg_v4_DXFeedTimeSeriesSubscription_setFromTime (graal_isolatethread_t *thread, dxfg_v4_time_series_subscription_t *sub, int64_t fromTime) |
| Sets the earliest time from which the time series subscription receives the events. | |
| int32_t | dxfg_v4_DXFeedTimeSeriesSubscription_getFromTime (graal_isolatethread_t *thread, dxfg_v4_time_series_subscription_t *sub, DXFG_OUT int64_t *fromTime) |
| Returns the earliest time from which the time series subscription receives the events. | |
| int32_t | dxfg_v4_Promise_isDone (graal_isolatethread_t *thread, dxfg_v4_promise_t *promise, DXFG_OUT int32_t *done) |
| Tells whether the promise is done: completed with a result, completed exceptionally or cancelled. | |
| int32_t | dxfg_v4_Promise_hasResult (graal_isolatethread_t *thread, dxfg_v4_promise_t *promise, DXFG_OUT int32_t *hasResult) |
| Tells whether the promise has completed normally, with a result. | |
| int32_t | dxfg_v4_Promise_hasException (graal_isolatethread_t *thread, dxfg_v4_promise_t *promise, DXFG_OUT int32_t *hasException) |
| Tells whether the promise has completed exceptionally or was cancelled. | |
| int32_t | dxfg_v4_Promise_isCancelled (graal_isolatethread_t *thread, dxfg_v4_promise_t *promise, DXFG_OUT int32_t *cancelled) |
| Tells whether the promise was cancelled. | |
| int32_t | dxfg_v4_Promise_EventType_getResult (graal_isolatethread_t *thread, dxfg_v4_promise_event_t *promise, DXFG_OUT dxfg_v4_event_type_t **event) |
| Returns the result of a promise of an event. | |
| int32_t | dxfg_v4_Promise_List_EventType_getResult (graal_isolatethread_t *thread, dxfg_v4_promise_events_t *promise, DXFG_OUT dxfg_v4_event_type_list **events) |
| Returns the result of a promise of a list of events. | |
| int32_t | dxfg_v4_Promise_getException (graal_isolatethread_t *thread, dxfg_v4_promise_t *promise, DXFG_OUT dxfg_v4_exception_t **exception) |
| Gets the exception of the promise. | |
| int32_t | dxfg_v4_Promise_await (graal_isolatethread_t *thread, dxfg_v4_promise_t *promise) |
| Waits for the promise to complete. | |
| int32_t | dxfg_v4_Promise_awaitWithTimeout (graal_isolatethread_t *thread, dxfg_v4_promise_t *promise, int32_t timeoutInMilliseconds) |
| Waits for the promise to complete or the timeout to elapse. | |
| int32_t | dxfg_v4_Promise_awaitWithoutException (graal_isolatethread_t *thread, dxfg_v4_promise_t *promise, int32_t timeoutInMilliseconds) |
| Waits for the promise to complete or the timeout to elapse, and reports the timeout without an exception. | |
| int32_t | dxfg_v4_Promise_cancel (graal_isolatethread_t *thread, dxfg_v4_promise_t *promise) |
| Cancels the promise. | |
| int32_t | dxfg_v4_Promise_List_EventType_complete (graal_isolatethread_t *thread, dxfg_v4_promise_t *promise, dxfg_v4_event_type_list *events) |
| Completes the promise of a list of events normally, with the given list. | |
| int32_t | dxfg_v4_Promise_EventType_complete (graal_isolatethread_t *thread, dxfg_v4_promise_t *promise, dxfg_v4_event_type_t *event) |
| Completes the promise of an event normally, with the given event. | |
| int32_t | dxfg_v4_Promise_completeExceptionally (graal_isolatethread_t *thread, dxfg_v4_promise_t *promise, dxfg_v4_exception_t *exception) |
| Completes the promise exceptionally, with the given exception. | |
| int32_t | dxfg_v4_Promise_whenDone (graal_isolatethread_t *thread, dxfg_v4_promise_t *promise, dxfg_v4_promise_handler_function promise_handler_function, void *user_data) |
| Adds a handler that is called when the promise is done. | |
| int32_t | dxfg_v4_Promise_whenDoneAsync (graal_isolatethread_t *thread, dxfg_v4_promise_t *promise, dxfg_v4_promise_handler_function promise_handler_function, void *user_data, dxfg_v4_executor_t *executor) |
| Adds a handler that is called by the given executor when the promise is done. | |
| int32_t | dxfg_v4_Promise_completed (graal_isolatethread_t *thread, dxfg_v4_promise_t *promise, dxfg_v4_java_object_handler *handler, DXFG_OUT dxfg_v4_promise_t **newPromise) |
| Creates a promise that is already completed normally, with the given Java object as the result. | |
| int32_t | dxfg_v4_Promise_failed (graal_isolatethread_t *thread, dxfg_v4_promise_t *promise, dxfg_v4_exception_t *exception, DXFG_OUT dxfg_v4_promise_t **newPromise) |
| Creates a promise that is already failed, with the given exception. | |
| int32_t | dxfg_v4_Promise_new (graal_isolatethread_t *thread, DXFG_OUT dxfg_v4_promise_t **promise) |
| Creates a new promise that is not done yet. | |
| int32_t | dxfg_v4_Promise_complete (graal_isolatethread_t *thread, dxfg_v4_promise_t *promise, dxfg_v4_java_object_handler *result) |
| Completes the promise normally, with the given Java object as the result. | |
| int32_t | dxfg_v4_Promise_getResult (graal_isolatethread_t *thread, dxfg_v4_promise_t *promise, DXFG_OUT dxfg_v4_java_object_handler **result) |
| Gets the result of the promise as a handle of a Java object. | |
| int32_t | dxfg_v4_Promise_completeExceptionallyWithClassNameAndMessage (graal_isolatethread_t *thread, dxfg_v4_promise_t *promise, const char *className, const char *message) |
| Completes the promise exceptionally, with a new Java exception of the named class and the given message. | |
| int32_t | dxfg_v4_Promise_failedWithClassNameAndMessage (graal_isolatethread_t *thread, const char *className, const char *message, DXFG_OUT dxfg_v4_promise_t **newPromise) |
| Creates a promise that is already failed, with a new Java exception of the named class and the given message. | |
| int32_t | dxfg_v4_Promises_allOf (graal_isolatethread_t *thread, dxfg_v4_promise_list *promises, DXFG_OUT dxfg_v4_promise_t **promise) |
| Creates a promise that is done when all the given promises are done. | |
| int32_t | dxfg_v4_promise_list_release (graal_isolatethread_t *thread, dxfg_v4_promise_list *promises) |
The v4 functions of dxfg_feed.h and the v4 names of its types (see the group Feed (v4)).