dxFeed Graal Native SDK 3.16.0
Loading...
Searching...
No Matches
dxfg_v4_ondemand.h
Go to the documentation of this file.
1// Copyright (c) 2026 Devexperts LLC.
2// SPDX-License-Identifier: MPL-2.0
3
8
9#ifndef DXFG_V4_ONDEMAND_H
10#define DXFG_V4_ONDEMAND_H
11
12#include "dxfg_ondemand.h"
13#include "dxfg_v4_common.h"
14#include "dxfg_v4_endpoint.h"
15#include "dxfg_v4_javac.h"
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
27
30
33
54 DXFG_OUT dxfg_v4_on_demand_service_t **onDemandService);
55
73 DXFG_OUT dxfg_v4_on_demand_service_t **onDemandService);
74
88 DXFG_OUT dxfg_v4_endpoint_t **endpoint);
89
106 DXFG_OUT int32_t *replaySupported);
107
124 DXFG_OUT int32_t *replay);
125
143 DXFG_OUT int32_t *clear);
144
161 DXFG_OUT int64_t *time);
162
178 DXFG_OUT double *speed);
179
195 int64_t time);
196
217 int64_t time, double speed);
218
233
251
270
287 double speed);
288
307
326
337
357 const char *property_name,
358 const dxfg_v4_on_demand_property_value_t *old_value,
359 const dxfg_v4_on_demand_property_value_t *new_value,
360 void *user_data);
361
383 void *user_data,
385
405
426 // end of V4_OnDemand
428
429#ifdef __cplusplus
430}
431#endif
432
433#endif // DXFG_V4_ONDEMAND_H
dxFeed Graal Native SDK OnDemand functions and types declarations
The v4 functions of dxfg_common.h and the v4 names of its types (see the group Common (v4)).
The v4 functions of dxfg_endpoint.h and the v4 names of its types (see the group Endpoint (v4)).
The v4 functions of dxfg_javac.h and the v4 names of its types (see the group Javac (v4)).
struct __graal_isolatethread_t graal_isolatethread_t
The state of one thread attached to an isolate: the first parameter (thread) of the SDK functions.
Definition graal_isolate.h:60
#define DXFG_OUT
Definition dxfg_common.h:37
dxfg_endpoint_t dxfg_v4_endpoint_t
A handle of a Java DXEndpoint object; release it with dxfg_JavaObjectHandler_release().
Definition dxfg_v4_endpoint.h:37
dxfg_java_object_handler dxfg_v4_java_object_handler
The handle of a Java object: the reference by which the C code refers to an object that lives in Java...
Definition dxfg_v4_javac.h:27
int32_t dxfg_v4_OnDemandService_stopAndResume(graal_isolatethread_t *thread, dxfg_v4_on_demand_service_t *service)
Stops the replay and resumes the ordinary data feed.
int32_t dxfg_v4_OnDemandService_isClear(graal_isolatethread_t *thread, dxfg_v4_on_demand_service_t *service, DXFG_OUT int32_t *clear)
Tells whether the service is in the clear mode.
int32_t dxfg_v4_OnDemandService_addPropertyChangeListener(graal_isolatethread_t *thread, dxfg_v4_on_demand_service_t *service, dxfg_v4_on_demand_property_change_listener_t *listener)
Adds a listener of the property changes to the on-demand service.
int32_t dxfg_v4_OnDemandPropertyChangeListener_new(graal_isolatethread_t *thread, dxfg_v4_OnDemandPropertyChangeListener_function function, void *user_data, DXFG_OUT dxfg_v4_on_demand_property_change_listener_t **listener)
Creates a listener of the property changes of an on-demand service.
int32_t dxfg_v4_OnDemandService_isReplay(graal_isolatethread_t *thread, dxfg_v4_on_demand_service_t *service, DXFG_OUT int32_t *replay)
Tells whether the service is in the replay mode.
int32_t dxfg_v4_OnDemandService_isReplaySupported(graal_isolatethread_t *thread, dxfg_v4_on_demand_service_t *service, DXFG_OUT int32_t *replaySupported)
Tells whether the on-demand historical data replay mode is supported.
dxfg_v4_on_demand_property_value_kind_t
The kind of the value of an on-demand service property (dxfg_v4_on_demand_property_value_t).
Definition dxfg_v4_ondemand.h:295
int32_t dxfg_v4_OnDemandService_stopAndClear(graal_isolatethread_t *thread, dxfg_v4_on_demand_service_t *service)
Stops the incoming data and clears it without resuming the data updates.
dxfg_on_demand_service_t dxfg_v4_on_demand_service_t
A handle of a Java OnDemandService object; release it with dxfg_JavaObjectHandler_release().
Definition dxfg_v4_ondemand.h:32
void(*) dxfg_v4_OnDemandPropertyChangeListener_function(graal_isolatethread_t *thread, const char *property_name, const dxfg_v4_on_demand_property_value_t *old_value, const dxfg_v4_on_demand_property_value_t *new_value, void *user_data)
The callback of a listener of the property changes of an on-demand service.
Definition dxfg_v4_ondemand.h:356
int32_t dxfg_v4_OnDemandService_pause(graal_isolatethread_t *thread, dxfg_v4_on_demand_service_t *service)
Pauses the replay and keeps the data snapshot.
int32_t dxfg_v4_OnDemandService_setSpeed(graal_isolatethread_t *thread, dxfg_v4_on_demand_service_t *service, double speed)
Changes the replay speed and continues the replay at the current time.
int32_t dxfg_v4_OnDemandService_removePropertyChangeListener(graal_isolatethread_t *thread, dxfg_v4_on_demand_service_t *service, dxfg_v4_on_demand_property_change_listener_t *listener)
Removes a listener of the property changes from the on-demand service.
int32_t dxfg_v4_OnDemandService_getInstance(graal_isolatethread_t *thread, DXFG_OUT dxfg_v4_on_demand_service_t **onDemandService)
Returns the on-demand service of the default endpoint with the DXFG_ENDPOINT_ROLE_ON_DEMAND_FEED role...
int32_t dxfg_v4_OnDemandService_getSpeed(graal_isolatethread_t *thread, dxfg_v4_on_demand_service_t *service, DXFG_OUT double *speed)
Returns the replay speed.
int32_t dxfg_v4_OnDemandService_getEndpoint(graal_isolatethread_t *thread, dxfg_v4_on_demand_service_t *service, DXFG_OUT dxfg_v4_endpoint_t **endpoint)
Returns the endpoint that is associated with the service.
int32_t dxfg_v4_OnDemandService_getTime(graal_isolatethread_t *thread, dxfg_v4_on_demand_service_t *service, DXFG_OUT int64_t *time)
Returns the current or the last replay time.
int32_t dxfg_v4_OnDemandService_replay(graal_isolatethread_t *thread, dxfg_v4_on_demand_service_t *service, int64_t time)
Turns the replay mode on from the specified time with the real-time speed (1).
int32_t dxfg_v4_OnDemandService_getInstanceByEndpoint(graal_isolatethread_t *thread, dxfg_v4_endpoint_t *endpoint, DXFG_OUT dxfg_v4_on_demand_service_t **onDemandService)
Returns the on-demand service of the specified endpoint.
int32_t dxfg_v4_OnDemandService_replayWithSpeed(graal_isolatethread_t *thread, dxfg_v4_on_demand_service_t *service, int64_t time, double speed)
Turns the replay mode on from the specified time with the specified speed.
@ DXFG_V4_ON_DEMAND_PROPERTY_VALUE_BOOLEAN
Definition dxfg_v4_ondemand.h:299
@ DXFG_V4_ON_DEMAND_PROPERTY_VALUE_OTHER
Definition dxfg_v4_ondemand.h:305
@ DXFG_V4_ON_DEMAND_PROPERTY_VALUE_NULL
Definition dxfg_v4_ondemand.h:297
@ DXFG_V4_ON_DEMAND_PROPERTY_VALUE_DOUBLE
Definition dxfg_v4_ondemand.h:301
@ DXFG_V4_ON_DEMAND_PROPERTY_VALUE_TIME
Definition dxfg_v4_ondemand.h:303
The handle of a Java object: the reference by which the C code refers to an object that lives in Java...
Definition dxfg_javac.h:60
A handle of a Java OnDemandService object; release it with dxfg_JavaObjectHandler_release().
Definition dxfg_ondemand.h:56
The handle of a listener of the property changes of an on-demand service.
Definition dxfg_v4_ondemand.h:333
dxfg_java_object_handler handler
Definition dxfg_v4_ondemand.h:335
The old or the new value of an on-demand service property, passed to dxfg_v4_OnDemandPropertyChangeLi...
Definition dxfg_v4_ondemand.h:315
int32_t kind
Definition dxfg_v4_ondemand.h:318
int64_t time_value
Definition dxfg_v4_ondemand.h:324
int32_t boolean_value
Definition dxfg_v4_ondemand.h:320
double double_value
Definition dxfg_v4_ondemand.h:322