@Service public static class QDEndpoint.Builder extends Object implements Cloneable
QDEndpoint
objects.Modifier and Type | Field and Description |
---|---|
protected List<QDCollector.Factory> |
collectors |
protected Properties |
props |
protected DataScheme |
scheme |
protected boolean |
storeEverything |
protected SymbolStriper |
striper |
protected boolean |
withEventTimeSequence |
Modifier | Constructor and Description |
---|---|
protected |
Builder()
Creates new builder.
|
Modifier and Type | Method and Description |
---|---|
QDEndpoint |
build() |
QDEndpoint.Builder |
clone() |
protected String |
getOrCreateName() |
protected DataScheme |
getSchemeOrDefault() |
protected SymbolStriper |
getStriperOrDefault() |
protected void |
subscribe(QDEndpoint endpoint) |
boolean |
supportsProperty(String key)
Returns true if the corresponding property key is supported.
|
QDEndpoint.Builder |
withCollectors(Collection<? extends QDCollector.Factory> collectors)
Creates specified collectors for this endpoint when it is
build() . |
QDEndpoint.Builder |
withContracts(EnumSet<QDContract> contracts)
Deprecated.
Use
withCollectors(Collection) and it has a more telling name
and wider range of features. |
QDEndpoint.Builder |
withEventTimeSequence(boolean withEventTime)
Specifies should endpoint support event time sequence or not.
|
QDEndpoint.Builder |
withName(String name)
Changes name that is used to distinguish multiple endpoints
in the same JVM in logs and in other diagnostic means.
|
QDEndpoint.Builder |
withProperties(Properties props)
Sets all supported properties from the provided properties object.
|
QDEndpoint.Builder |
withProperty(String key,
String value)
Sets the specified property.
|
QDEndpoint.Builder |
withScheme(DataScheme scheme) |
QDEndpoint.Builder |
withStoreEverything(boolean storeEverything)
Invoke this method to enable
store everything mode in endpoint's collectors. |
QDEndpoint.Builder |
withStripe(String stripe) |
QDEndpoint.Builder |
withStriper(SymbolStriper striper) |
QDEndpoint.Builder |
withSubscribeSupport(String prefix)
Invoke this method with a property key prefix like "dxfeed.qd.subscribe." or
"multiplexor.qd.subscribe." to enable support for permanent subscription.
|
protected DataScheme scheme
protected List<QDCollector.Factory> collectors
protected Properties props
protected boolean withEventTimeSequence
protected boolean storeEverything
protected SymbolStriper striper
protected Builder()
QDEndpoint.newBuilder()
.public QDEndpoint.Builder clone()
public final QDEndpoint.Builder withName(String name)
withProperty
(NAME_PROPERTY
,name
)public final QDEndpoint.Builder withScheme(DataScheme scheme)
public final QDEndpoint.Builder withContracts(EnumSet<QDContract> contracts)
withCollectors(Collection)
and it has a more telling name
and wider range of features.public final QDEndpoint.Builder withCollectors(Collection<? extends QDCollector.Factory> collectors)
build()
.public final QDEndpoint.Builder withEventTimeSequence(boolean withEventTime)
withEventTime
- true
if endpoint should support event time sequence.public final QDEndpoint.Builder withStoreEverything(boolean storeEverything)
store everything
mode in endpoint's collectors.public final QDEndpoint.Builder withStripe(String stripe)
public final QDEndpoint.Builder withStriper(SymbolStriper striper)
public final QDEndpoint.Builder withSubscribeSupport(String prefix)
withProperties(Properties)
.
This prefix together with a QDContract
name provides a way to define
a permanent subscription for a specified contract with the value of "<records> <symbols>".public final QDEndpoint.Builder withProperty(String key, String value)
supportsProperty(String)
public final QDEndpoint.Builder withProperties(Properties props)
public boolean supportsProperty(String key)
withProperty(String, String)
protected final String getOrCreateName()
protected final DataScheme getSchemeOrDefault()
protected final SymbolStriper getStriperOrDefault()
public QDEndpoint build()
protected void subscribe(QDEndpoint endpoint)
Copyright © 2002–2025 Devexperts LLC. All rights reserved.