public static enum DXEndpoint.Role extends Enum<DXEndpoint.Role>
creation
.DXEndpoint
Enum Constant and Description |
---|
FEED
FEED endpoint connects to the remote data feed provider and is optimized for real-time or
delayed data processing (this is a default role). |
LOCAL_HUB
LOCAL_HUB endpoint is a local hub without ability to establish network connections. |
PUBLISHER
PUBLISHER endpoint connects to the remote publisher hub (also known as multiplexor) or
creates a publisher on the local host. |
STREAM_FEED
STREAM_FEED endpoint connects to the remote data feed provider and is designed for bulk
parsing of data from files. |
Modifier and Type | Method and Description |
---|---|
static DXEndpoint.Role |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DXEndpoint.Role[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DXEndpoint.Role FEED
FEED
endpoint connects to the remote data feed provider and is optimized for real-time or
delayed data processing (this is a default role). DXEndpoint.getFeed()
method
returns feed object that subscribes to the remote data feed provider and receives events from it.
When event processing threads cannot keep up (don't have enough CPU time), data is dynamically conflated to
minimize latency between received events and their processing time.public static final DXEndpoint.Role STREAM_FEED
STREAM_FEED
endpoint connects to the remote data feed provider and is designed for bulk
parsing of data from files. DXEndpoint.getFeed()
method
returns feed object that subscribes to the data from the opened files and receives events from them.
Events from the files are not conflated and are processed as fast as possible.
Note, that in this role, DXFeed.getLastEvent(E)
method does not work.public static final DXEndpoint.Role PUBLISHER
PUBLISHER
endpoint connects to the remote publisher hub (also known as multiplexor) or
creates a publisher on the local host. DXEndpoint.getPublisher()
method returns
a publisher object that publishes events to all connected feeds.
Note, that in this role, DXFeed.getLastEvent(E)
method does not work and
time-series subscription is not supported.public static final DXEndpoint.Role LOCAL_HUB
public static DXEndpoint.Role[] values()
for (DXEndpoint.Role c : DXEndpoint.Role.values()) System.out.println(c);
public static DXEndpoint.Role valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullCopyright © 2014 Devexperts. All Rights Reserved.