dxFeed Graal Native SDK 3.14.0
Loading...
Searching...
No Matches
dxfg_ondemand.h
Go to the documentation of this file.
1// Copyright (c) 2025 Devexperts LLC.
2// SPDX-License-Identifier: MPL-2.0
3
8
9#ifndef DXFG_ONDEMAND_H
10#define DXFG_ONDEMAND_H
11
12#ifdef __cplusplus
13extern "C" {
14# include <cstdint>
15#else
16# include <stdint.h>
17#endif
18
19#include "dxfg_common.h"
20
21#include "graal_isolate.h"
22#include "dxfg_endpoint.h"
23#include "dxfg_javac.h"
24
41
46
60
80DXFG_DEPRECATED("use dxfg_v4_OnDemandService_getInstance()")
82
99DXFG_DEPRECATED("use dxfg_v4_OnDemandService_getInstanceByEndpoint()")
101
114DXFG_DEPRECATED("use dxfg_v4_OnDemandService_getEndpoint()")
116
132DXFG_DEPRECATED("use dxfg_v4_OnDemandService_isReplaySupported()")
134
150DXFG_DEPRECATED("use dxfg_v4_OnDemandService_isReplay()")
152
168DXFG_DEPRECATED("use dxfg_v4_OnDemandService_isClear()")
170
186DXFG_DEPRECATED("use dxfg_v4_OnDemandService_getTime()")
188
204DXFG_DEPRECATED("use dxfg_v4_OnDemandService_getSpeed()")
206
223DXFG_DEPRECATED("use dxfg_v4_OnDemandService_replay()")
225
247DXFG_DEPRECATED("use dxfg_v4_OnDemandService_replayWithSpeed()")
248int32_t dxfg_OnDemandService_replay2(graal_isolatethread_t *thread, dxfg_on_demand_service_t *service, int64_t time, double speed);
249
265DXFG_DEPRECATED("use dxfg_v4_OnDemandService_pause()")
267
286DXFG_DEPRECATED("use dxfg_v4_OnDemandService_stopAndResume()")
288
307DXFG_DEPRECATED("use dxfg_v4_OnDemandService_stopAndClear()")
309
327DXFG_DEPRECATED("use dxfg_v4_OnDemandService_setSpeed()")
329 // end of OnDemand
331
332#ifdef __cplusplus
333}
334#endif
335
336#endif // DXFG_ONDEMAND_H
dxFeed Graal Native SDK Common declarations
dxFeed Graal Native SDK Endpoint functions and types declarations
dxFeed Graal Native SDK Java functions and types declarations
The functions of GraalVM that create, attach to and tear down an isolate, the instance of the SDK in ...
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
int32_t dxfg_OnDemandService_replay2(graal_isolatethread_t *thread, dxfg_on_demand_service_t *service, int64_t time, double speed)
Turns the replay mode on from the specified time with the specified speed.
dxfg_endpoint_t * dxfg_OnDemandService_getEndpoint(graal_isolatethread_t *thread, dxfg_on_demand_service_t *service)
Returns the endpoint that is associated with the service.
int32_t dxfg_OnDemandService_stopAndResume(graal_isolatethread_t *thread, dxfg_on_demand_service_t *service)
Stops the replay and resumes the ordinary data feed.
dxfg_on_demand_service_t * dxfg_OnDemandService_getInstance2(graal_isolatethread_t *thread, dxfg_endpoint_t *endpoint)
Returns the on-demand service of the specified endpoint.
int32_t dxfg_OnDemandService_pause(graal_isolatethread_t *thread, dxfg_on_demand_service_t *service)
Pauses the replay and keeps the data snapshot.
int32_t dxfg_OnDemandService_isReplay(graal_isolatethread_t *thread, dxfg_on_demand_service_t *service)
Tells whether the service is in the replay mode.
dxfg_on_demand_service_t * dxfg_OnDemandService_getInstance(graal_isolatethread_t *thread)
Returns the on-demand service of the default endpoint with the DXFG_ENDPOINT_ROLE_ON_DEMAND_FEED role...
int32_t dxfg_OnDemandService_stopAndClear(graal_isolatethread_t *thread, dxfg_on_demand_service_t *service)
Stops the incoming data and clears it without resuming the data updates.
double dxfg_OnDemandService_getSpeed(graal_isolatethread_t *thread, dxfg_on_demand_service_t *service)
Returns the replay speed.
struct dxfg_java_object_handler dxfg_java_object_handler
Forward declarations.
Definition dxfg_ondemand.h:45
int32_t dxfg_OnDemandService_isReplaySupported(graal_isolatethread_t *thread, dxfg_on_demand_service_t *service)
Tells whether the on-demand historical data replay mode is supported.
int64_t dxfg_OnDemandService_getTime(graal_isolatethread_t *thread, dxfg_on_demand_service_t *service)
Returns the current or the last replay time.
int32_t dxfg_OnDemandService_setSpeed(graal_isolatethread_t *thread, dxfg_on_demand_service_t *service, double speed)
Changes the replay speed and continues the replay at the current time.
int32_t dxfg_OnDemandService_isClear(graal_isolatethread_t *thread, dxfg_on_demand_service_t *service)
Tells whether the service is in the clear mode.
int32_t dxfg_OnDemandService_replay(graal_isolatethread_t *thread, dxfg_on_demand_service_t *service, int64_t time)
Turns the replay mode on from the specified time with the real-time speed (1).
A handle of a Java DXEndpoint object; release it with dxfg_JavaObjectHandler_release().
Definition dxfg_endpoint.h:68
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
dxfg_java_object_handler handler
Definition dxfg_ondemand.h:58