Class TopicSettings
- java.lang.Object
-
- deltix.qsrv.hf.tickdb.pub.topic.settings.TopicSettings
-
public class TopicSettings extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description TopicSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCopyToStream()
java.util.List<? extends deltix.qsrv.hf.pub.InstrumentIdentity>
getInitialEntitySet()
MulticastTopicSettings
getMulticastSettings()
java.lang.String
getPublisherAddress()
TopicType
getTopicType()
TopicSettings
setCopyToStream(java.lang.String copyToStreamKey)
Enables background process that will copy all the data passed to this topic into a stream with the specified name.TopicSettings
setInitialEntitySet(java.util.List<? extends deltix.qsrv.hf.pub.InstrumentIdentity> initialEntitySet)
Defines initial entity set (may be empty).TopicSettings
setMulticastSettings(MulticastTopicSettings multicastSettings)
Warning: This API is a "work in progress" (WIP) and is a subject to change.TopicSettings
setSinglePublisherUdpMode(java.lang.String publisherAddress)
Enables UDP operation mode with single predefined publisher.
-
-
-
Method Detail
-
getInitialEntitySet
@Nullable public java.util.List<? extends deltix.qsrv.hf.pub.InstrumentIdentity> getInitialEntitySet()
-
setInitialEntitySet
public TopicSettings setInitialEntitySet(java.util.List<? extends deltix.qsrv.hf.pub.InstrumentIdentity> initialEntitySet)
Defines initial entity set (may be empty). Providing entity set that matches expected data removes extra overhead that associated with generation of indexes for new entities.
-
getCopyToStream
@Nullable public java.lang.String getCopyToStream()
-
setCopyToStream
public TopicSettings setCopyToStream(java.lang.String copyToStreamKey)
Enables background process that will copy all the data passed to this topic into a stream with the specified name. Keep in mind that if the topic data rate is too high then the stream may be unable to cope with it. In that case the topics's data producers will be blocked (any may loose data).
-
getMulticastSettings
@Nullable public MulticastTopicSettings getMulticastSettings()
-
setMulticastSettings
public TopicSettings setMulticastSettings(@Nullable MulticastTopicSettings multicastSettings)
Warning: This API is a "work in progress" (WIP) and is a subject to change.Enables multicast operation mode.
In this mode all Publishers send data via UDP multicast. Note: this should be used only in the networks under your control and only if you sure if the multicast traffic will not clog other applications.
- Parameters:
multicastSettings
- multicast settings.null
value will enable multicast with default settings.
-
setSinglePublisherUdpMode
public TopicSettings setSinglePublisherUdpMode(java.lang.String publisherAddress)
Enables UDP operation mode with single predefined publisher. Ony one publisher at a time can be used for this topic. This publisher can run only on the specified host.- Parameters:
publisherAddress
- IP address or hostname of the host that will run publisher.
-
getPublisherAddress
public java.lang.String getPublisherAddress()
-
getTopicType
@Nonnull public TopicType getTopicType()
-
-