public interface Chain extends Completable
Chain
represents a specific type
of MarketPrice
instruments that contains other instruments names.
From a pure semantic point of view a chain can be considered as a list of
instruments names. A chain is actually made of a chained list of Chain
Records
that are MarketPrice
instruments that contain
names of other instruments. Chain Records
also contain additional
fields that link them together (More details about chains data structure are
available in this article
available on the Thomson Reuters Developer Portal ).
A Chain
is an object that subscribes to the underlying
linked list of Chain Records
of a given chain and that retrieves
the contained instruments names for you.Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this
Chain and unsubscribes to the underlying
Chain Record . |
java.lang.String |
getName()
Returns the name of this
Chain . |
java.lang.String |
getServiceName()
Returns the name of the service this
Chain is published on. |
boolean |
isAChain()
Indicates if the name you used to build this
Chain corresponds
to an actual chain published on the Elektron or Thomson Reuters Enterprise
Platform (TREP) infrastructure. |
void |
open()
Opens this
Chain . |
isComplete
java.lang.String getName()
Chain
. This name is used by the
chain to subscribe to its first Chain Record
.Chain
.java.lang.String getServiceName()
Chain
is published on.
This service name is used by the chain to subscribe to the underlying
Chain Record
.Chain
.void open()
Chain
. Opening a chain starts the subscription
and the decoding of its underlying Chain Record
. Once opened,
the chain starts invoking the functional interfaces specified at built
time. This method has no effect if the chain is already opened.void close()
Chain
and unsubscribes to the underlying
Chain Record
. Once closed the chain stops invoking the functional
interfaces that have been specified at built time. This method has
no effect if the chain is already closed.boolean isAChain()
Chain
corresponds
to an actual chain published on the Elektron or Thomson Reuters Enterprise
Platform (TREP) infrastructure. In order to determine if it's the case
the chain must be opened so that it subscribed and decoded it's first
Chain Record
. If the chain is not opened, the method
returns false
.