dxFeed Graal Native SDK 3.9.0
Loading...
Searching...
No Matches
dxfg_endpoint.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_ENDPOINT_H
10#define DXFG_ENDPOINT_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_javac.h"
23
27
31typedef struct dxfg_feed_t dxfg_feed_t;
34
42
50
58
71
82
91 dxfg_endpoint_state_t new_state, void *user_data);
92
101
112int32_t dxfg_DXEndpoint_Builder_withProperty(graal_isolatethread_t *thread, dxfg_endpoint_builder_t *builder, const char *key, const char *value);
114
133
144 // end of Builder
146
160
174
185
197
212
225int32_t dxfg_DXEndpoint_user(graal_isolatethread_t *thread, dxfg_endpoint_t *endpoint, const char *user);
226int32_t dxfg_DXEndpoint_password(graal_isolatethread_t *thread, dxfg_endpoint_t *endpoint, const char *password);
227int32_t dxfg_DXEndpoint_connect(graal_isolatethread_t *thread, dxfg_endpoint_t *endpoint, const char *address);
234
253
271DXFG_DEPRECATED("use dxfg_DXEndpoint_Builder_withExecutor()")
273
284
296 // end of Endpoint
298
299#ifdef __cplusplus
300}
301#endif
302
303#endif // DXFG_ENDPOINT_H
dxFeed Graal Native SDK Common 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
Definition graal_isolate.h:59
dxfg_endpoint_builder_t * dxfg_DXEndpoint_newBuilder(graal_isolatethread_t *thread)
int32_t dxfg_DXEndpoint_Builder_withRole(graal_isolatethread_t *thread, dxfg_endpoint_builder_t *builder, dxfg_endpoint_role_t role)
int32_t dxfg_DXEndpoint_Builder_withName(graal_isolatethread_t *thread, dxfg_endpoint_builder_t *builder, const char *name)
int32_t dxfg_DXEndpoint_Builder_withProperty(graal_isolatethread_t *thread, dxfg_endpoint_builder_t *builder, const char *key, const char *value)
int32_t dxfg_DXEndpoint_Builder_withProperties(graal_isolatethread_t *thread, dxfg_endpoint_builder_t *builder, const char *file_path)
dxfg_endpoint_t * dxfg_DXEndpoint_Builder_build(graal_isolatethread_t *thread, dxfg_endpoint_builder_t *builder)
int32_t dxfg_DXEndpoint_Builder_withExecutor(graal_isolatethread_t *thread, dxfg_endpoint_builder_t *builder, dxfg_executor_t *executor)
int32_t dxfg_DXEndpoint_Builder_supportsProperty(graal_isolatethread_t *thread, dxfg_endpoint_builder_t *builder, const char *key)
int32_t dxfg_DXEndpoint_connect(graal_isolatethread_t *thread, dxfg_endpoint_t *endpoint, const char *address)
dxfg_endpoint_t * dxfg_DXEndpoint_create(graal_isolatethread_t *thread)
dxfg_endpoint_state_t dxfg_DXEndpoint_getState(graal_isolatethread_t *thread, dxfg_endpoint_t *endpoint)
int32_t dxfg_DXEndpoint_removeStateChangeListener(graal_isolatethread_t *thread, dxfg_endpoint_t *endpoint, dxfg_endpoint_state_change_listener_t *listener)
int32_t dxfg_DXEndpoint_executor(graal_isolatethread_t *thread, dxfg_endpoint_t *endpoint, dxfg_executor_t *executor)
dxfg_publisher_t * dxfg_DXEndpoint_getPublisher(graal_isolatethread_t *thread, dxfg_endpoint_t *endpoint)
int32_t dxfg_DXEndpoint_reconnect(graal_isolatethread_t *thread, dxfg_endpoint_t *endpoint)
dxfg_endpoint_role_t dxfg_DXEndpoint_getRole(graal_isolatethread_t *thread, dxfg_endpoint_t *endpoint)
int32_t dxfg_DXEndpoint_close(graal_isolatethread_t *thread, dxfg_endpoint_t *endpoint)
int32_t dxfg_DXEndpoint_disconnectAndClear(graal_isolatethread_t *thread, dxfg_endpoint_t *endpoint)
int32_t dxfg_DXEndpoint_addStateChangeListener(graal_isolatethread_t *thread, dxfg_endpoint_t *endpoint, dxfg_endpoint_state_change_listener_t *listener)
int32_t dxfg_DXEndpoint_closeAndAwaitTermination(graal_isolatethread_t *thread, dxfg_endpoint_t *endpoint)
int32_t dxfg_DXEndpoint_awaitProcessed(graal_isolatethread_t *thread, dxfg_endpoint_t *endpoint)
dxfg_endpoint_t * dxfg_DXEndpoint_getInstance(graal_isolatethread_t *thread)
dxfg_endpoint_state_change_listener_t * dxfg_PropertyChangeListener_new(graal_isolatethread_t *thread, dxfg_endpoint_state_change_listener_func user_func, void *user_data)
int32_t dxfg_DXEndpoint_user(graal_isolatethread_t *thread, dxfg_endpoint_t *endpoint, const char *user)
void(*) dxfg_endpoint_state_change_listener_func(graal_isolatethread_t *thread, dxfg_endpoint_state_t old_state, dxfg_endpoint_state_t new_state, void *user_data)
Function pointer to the endpoint state change listener.
Definition dxfg_endpoint.h:90
int32_t dxfg_DXEndpoint_awaitNotConnected(graal_isolatethread_t *thread, dxfg_endpoint_t *endpoint)
dxfg_endpoint_t * dxfg_DXEndpoint_create2(graal_isolatethread_t *thread, dxfg_endpoint_role_t role)
dxfg_feed_t * dxfg_DXEndpoint_getFeed(graal_isolatethread_t *thread, dxfg_endpoint_t *endpoint)
dxfg_endpoint_state_t
List of endpoint states. Javadoc.
Definition dxfg_endpoint.h:76
int32_t dxfg_DXEndpoint_disconnect(graal_isolatethread_t *thread, dxfg_endpoint_t *endpoint)
dxfg_endpoint_t * dxfg_DXEndpoint_getInstance2(graal_isolatethread_t *thread, dxfg_endpoint_role_t role)
dxfg_endpoint_role_t
List of endpoint roles. Javadoc.
Definition dxfg_endpoint.h:63
dxfg_event_clazz_list_t * dxfg_DXEndpoint_getEventTypes(graal_isolatethread_t *thread, dxfg_endpoint_t *endpoint)
int32_t dxfg_DXEndpoint_password(graal_isolatethread_t *thread, dxfg_endpoint_t *endpoint, const char *password)
@ DXFG_ENDPOINT_STATE_NOT_CONNECTED
Definition dxfg_endpoint.h:77
@ DXFG_ENDPOINT_STATE_CLOSED
Definition dxfg_endpoint.h:80
@ DXFG_ENDPOINT_STATE_CONNECTED
Definition dxfg_endpoint.h:79
@ DXFG_ENDPOINT_STATE_CONNECTING
Definition dxfg_endpoint.h:78
@ DXFG_ENDPOINT_ROLE_FEED
Definition dxfg_endpoint.h:64
@ DXFG_ENDPOINT_ROLE_STREAM_FEED
Definition dxfg_endpoint.h:66
@ DXFG_ENDPOINT_ROLE_PUBLISHER
Definition dxfg_endpoint.h:67
@ DXFG_ENDPOINT_ROLE_STREAM_PUBLISHER
Definition dxfg_endpoint.h:68
@ DXFG_ENDPOINT_ROLE_LOCAL_HUB
Definition dxfg_endpoint.h:69
@ DXFG_ENDPOINT_ROLE_ON_DEMAND_FEED
Definition dxfg_endpoint.h:65
The DXEndpoint.Builder. Javadoc.
Definition dxfg_endpoint.h:47
dxfg_java_object_handler handler
Definition dxfg_endpoint.h:48
The PropertyChangeListener. Javadoc.
Definition dxfg_endpoint.h:55
dxfg_java_object_handler handler
Definition dxfg_endpoint.h:56
The DXEndpoint. Javadoc.
Definition dxfg_endpoint.h:39
dxfg_java_object_handler handler
Definition dxfg_endpoint.h:40
Definition dxfg_events.h:615
Definition dxfg_javac.h:50
The DXFeed. Javadoc.
Definition dxfg_feed.h:41
Definition dxfg_javac.h:27
The DXPublisher. Javadoc.
Definition dxfg_publisher.h:38