dxFeed Graal Native SDK 3.14.0
Loading...
Searching...
No Matches
dxfg_v4_endpoint.h File Reference

The v4 functions of dxfg_endpoint.h and the v4 names of its types (see the group Endpoint (v4)). More...

#include "dxfg_endpoint.h"
#include "dxfg_v4_common.h"
#include "dxfg_v4_javac.h"

Go to the source code of this file.

Typedefs

typedef dxfg_feed_t dxfg_v4_feed_t
 A handle of a Java DXFeed object; release it with dxfg_JavaObjectHandler_release().
typedef dxfg_publisher_t dxfg_v4_publisher_t
 A handle of a Java DXPublisher object; release it with dxfg_JavaObjectHandler_release().
typedef dxfg_event_clazz_list_t dxfg_v4_event_clazz_list
 A list of event classes.
typedef dxfg_endpoint_t dxfg_v4_endpoint_t
 A handle of a Java DXEndpoint object; release it with dxfg_JavaObjectHandler_release().
typedef dxfg_endpoint_builder_t dxfg_v4_endpoint_builder_t
 A handle of a Java DXEndpoint.Builder object; release it with dxfg_JavaObjectHandler_release().
typedef dxfg_endpoint_state_change_listener_t dxfg_v4_endpoint_state_change_listener_t
 A handle of a Java PropertyChangeListener object that reports the state changes of an endpoint; release it with dxfg_JavaObjectHandler_release().
typedef dxfg_endpoint_role_t dxfg_v4_endpoint_role_t
 The role of an endpoint: it is specified when the endpoint is created and cannot be changed afterwards.
typedef dxfg_endpoint_state_t dxfg_v4_endpoint_state_t
 The state of an endpoint, see dxfg_DXEndpoint_getState().
typedef dxfg_endpoint_state_change_listener_func dxfg_v4_endpoint_state_change_listener_func
 The function of a dxfg_endpoint_state_change_listener_t: called when the state of the endpoint changes.

Functions

int32_t dxfg_v4_DXEndpoint_newBuilder (graal_isolatethread_t *thread, DXFG_OUT dxfg_v4_endpoint_builder_t **builder)
 Creates a new endpoint builder.
int32_t dxfg_v4_DXEndpoint_Builder_withRole (graal_isolatethread_t *thread, dxfg_v4_endpoint_builder_t *builder, dxfg_v4_endpoint_role_t role)
 Sets the role of the endpoints built by the builder.
int32_t dxfg_v4_DXEndpoint_Builder_withName (graal_isolatethread_t *thread, dxfg_v4_endpoint_builder_t *builder, const char *name)
 Sets the name of the endpoints built by the builder.
int32_t dxfg_v4_DXEndpoint_Builder_withProperty (graal_isolatethread_t *thread, dxfg_v4_endpoint_builder_t *builder, const char *key, const char *value)
 Sets a property of the endpoints built by the builder.
int32_t dxfg_v4_DXEndpoint_Builder_withProperties (graal_isolatethread_t *thread, dxfg_v4_endpoint_builder_t *builder, const char *file_path)
 Sets the properties of the endpoints built by the builder from a properties file.
int32_t dxfg_v4_DXEndpoint_Builder_withExecutor (graal_isolatethread_t *thread, dxfg_v4_endpoint_builder_t *builder, dxfg_v4_executor_t *executor)
 Sets the executor of the notifications of the endpoints built by this builder: event processing, state changes, etc.
int32_t dxfg_v4_DXEndpoint_Builder_supportsProperty (graal_isolatethread_t *thread, dxfg_v4_endpoint_builder_t *builder, const char *key, DXFG_OUT int32_t *supported)
 Checks whether the builder supports a property.
int32_t dxfg_v4_DXEndpoint_Builder_build (graal_isolatethread_t *thread, dxfg_v4_endpoint_builder_t *builder, DXFG_OUT dxfg_v4_endpoint_t **endpoint)
 Builds a new endpoint with the builder's settings.
int32_t dxfg_v4_DXEndpoint_getInstance (graal_isolatethread_t *thread, DXFG_OUT dxfg_v4_endpoint_t **endpoint)
 Returns the default application-wide singleton endpoint with the DXFG_ENDPOINT_ROLE_FEED role, the same one that dxfg_v4_DXFeed_getInstance() uses.
int32_t dxfg_v4_DXEndpoint_getInstanceWithRole (graal_isolatethread_t *thread, dxfg_v4_endpoint_role_t role, DXFG_OUT dxfg_v4_endpoint_t **endpoint)
 Creates a new endpoint with the given role on every call, the same as dxfg_v4_DXEndpoint_createWithRole().
int32_t dxfg_v4_DXEndpoint_create (graal_isolatethread_t *thread, DXFG_OUT dxfg_v4_endpoint_t **endpoint)
 Creates a new endpoint with the DXFG_ENDPOINT_ROLE_FEED role.
int32_t dxfg_v4_DXEndpoint_createWithRole (graal_isolatethread_t *thread, dxfg_v4_endpoint_role_t role, DXFG_OUT dxfg_v4_endpoint_t **endpoint)
 Creates a new endpoint with the given role.
int32_t dxfg_v4_DXEndpoint_close (graal_isolatethread_t *thread, dxfg_v4_endpoint_t *endpoint)
 Closes the endpoint: disconnects it and releases its resources. The endpoint cannot be used after that.
int32_t dxfg_v4_DXEndpoint_closeAndAwaitTermination (graal_isolatethread_t *thread, dxfg_v4_endpoint_t *endpoint)
 Closes the endpoint and waits until all the data processing and the scheduled notifications are completed.
int32_t dxfg_v4_DXEndpoint_getRole (graal_isolatethread_t *thread, dxfg_v4_endpoint_t *endpoint, DXFG_OUT dxfg_v4_endpoint_role_t *role)
 Returns the role of the endpoint.
int32_t dxfg_v4_DXEndpoint_user (graal_isolatethread_t *thread, dxfg_v4_endpoint_t *endpoint, const char *user)
 Sets the user name of the endpoint.
int32_t dxfg_v4_DXEndpoint_password (graal_isolatethread_t *thread, dxfg_v4_endpoint_t *endpoint, const char *password)
 Sets the password of the endpoint.
int32_t dxfg_v4_DXEndpoint_connect (graal_isolatethread_t *thread, dxfg_v4_endpoint_t *endpoint, const char *address)
 Connects the endpoint to the remote address.
int32_t dxfg_v4_DXEndpoint_reconnect (graal_isolatethread_t *thread, dxfg_v4_endpoint_t *endpoint)
 Terminates all the network connections of the endpoint and initiates connecting again with the same address.
int32_t dxfg_v4_DXEndpoint_disconnect (graal_isolatethread_t *thread, dxfg_v4_endpoint_t *endpoint)
 Terminates all the remote network connections of the endpoint.
int32_t dxfg_v4_DXEndpoint_disconnectAndClear (graal_isolatethread_t *thread, dxfg_v4_endpoint_t *endpoint)
 Terminates all the remote network connections of the endpoint and clears the stored data.
int32_t dxfg_v4_DXEndpoint_awaitProcessed (graal_isolatethread_t *thread, dxfg_v4_endpoint_t *endpoint)
 Waits until the endpoint stops processing data (becomes quiescent).
int32_t dxfg_v4_DXEndpoint_awaitNotConnected (graal_isolatethread_t *thread, dxfg_v4_endpoint_t *endpoint)
 Waits until the state of the endpoint becomes DXFG_ENDPOINT_STATE_NOT_CONNECTED or DXFG_ENDPOINT_STATE_CLOSED.
int32_t dxfg_v4_DXEndpoint_getState (graal_isolatethread_t *thread, dxfg_v4_endpoint_t *endpoint, DXFG_OUT dxfg_v4_endpoint_state_t *state)
 Returns the state of the endpoint.
int32_t dxfg_v4_DXEndpoint_addStateChangeListener (graal_isolatethread_t *thread, dxfg_v4_endpoint_t *endpoint, dxfg_v4_endpoint_state_change_listener_t *listener)
 Adds the state change listener (see dxfg_v4_PropertyChangeListener_new()).
int32_t dxfg_v4_DXEndpoint_removeStateChangeListener (graal_isolatethread_t *thread, dxfg_v4_endpoint_t *endpoint, dxfg_v4_endpoint_state_change_listener_t *listener)
 Removes the state change listener that was added with dxfg_v4_DXEndpoint_addStateChangeListener().
int32_t dxfg_v4_DXEndpoint_getFeed (graal_isolatethread_t *thread, dxfg_v4_endpoint_t *endpoint, DXFG_OUT dxfg_v4_feed_t **feed)
 Returns the feed of the endpoint.
int32_t dxfg_v4_DXEndpoint_getPublisher (graal_isolatethread_t *thread, dxfg_v4_endpoint_t *endpoint, DXFG_OUT dxfg_v4_publisher_t **publisher)
 Returns the publisher of the endpoint.
int32_t dxfg_v4_DXEndpoint_getEventTypes (graal_isolatethread_t *thread, dxfg_v4_endpoint_t *endpoint, DXFG_OUT dxfg_v4_event_clazz_list **eventTypes)
 Returns the event types that the endpoint supports.
int32_t dxfg_v4_DXEndpoint_getRequestedAggregationPeriod (graal_isolatethread_t *thread, dxfg_v4_endpoint_t *endpoint, DXFG_OUT dxfg_v4_time_period_t **period)
 Returns the aggregation period that the endpoint requests from the server.
int32_t dxfg_v4_DXEndpoint_getRequestedAggregationPeriodMillis (graal_isolatethread_t *thread, dxfg_v4_endpoint_t *endpoint, DXFG_OUT int64_t *period)
 Returns the aggregation period (in millis) that the endpoint requests from the server.
int32_t dxfg_v4_DXEndpoint_setRequestedAggregationPeriod (graal_isolatethread_t *thread, dxfg_v4_endpoint_t *endpoint, dxfg_v4_time_period_t *period)
 Sets the aggregation period that the endpoint requests from the server.
int32_t dxfg_v4_DXEndpoint_setRequestedAggregationPeriodMillis (graal_isolatethread_t *thread, dxfg_v4_endpoint_t *endpoint, int64_t period)
 Sets the aggregation period (in millis) that the endpoint requests from the server.
int32_t dxfg_v4_DXEndpoint_getAggregationPeriodInfo (graal_isolatethread_t *thread, dxfg_v4_endpoint_t *endpoint, DXFG_OUT int64_t *min, DXFG_OUT int64_t *max)
 Returns the aggregation period that the servers apply, over all connections of the endpoint.
int32_t dxfg_v4_PropertyChangeListener_new (graal_isolatethread_t *thread, dxfg_v4_endpoint_state_change_listener_func user_func, void *user_data, DXFG_OUT dxfg_v4_endpoint_state_change_listener_t **listener)
 Creates a new endpoint state change listener.

Detailed Description

The v4 functions of dxfg_endpoint.h and the v4 names of its types (see the group Endpoint (v4)).