public interface FlatChain extends Chain
Chain
implementation you can use to open flat
chains (meaning non recursive chains). FlatChain
s must be built
using a FlatChain.Builder
. As an example, the code snippet
below creates and opens a FlatChain
for the Dow Jones chain
published on the ELEKTRON_DD service:
OmmConsumer ommConsumer = ...; . . . FlatChain theChain = new FlatChain.Builder() .withOmmConsumer(ommConsumer) .withChainName("0#.DJI") .withServiceName("ELEKTRON_DD") .build(); theChain.open();
FlatChain
objects.
They must be set at built time via a FlatChain.Builder
. Please refer
to this class for the exhaustive list.
API_DISPATCH
and
USER_DISPATCH
OmmConsumer
operation models.Modifier and Type | Interface and Description |
---|---|
static class |
FlatChain.Builder
Used to build
FlatChain objects. |
static interface |
FlatChain.OnCompleteFunction
Represents an optional operation that is called when a chain is complete
This operation is optionally set when the
FlatChain is created. |
static interface |
FlatChain.OnElementAddedFunction
Represents an optional operation that is called when an element is added
to a
FlatChain . |
static interface |
FlatChain.OnElementChangedFunction
Represents an optional operation that is called when a chain element
changes.
|
static interface |
FlatChain.OnElementRemovedFunction
Represents an optional operation that is called when a chain element
is removed from a chain.
|
static interface |
FlatChain.OnErrorFunction
Represents an optional operation that is called when a chain is in error.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.Long,java.lang.String> |
getElements()
Returns the elements of this chain.
|
close, getName, getServiceName, isAChain, open
isComplete
java.util.Map<java.lang.Long,java.lang.String> getElements()
Map
with the elements positions as keys and the elements
names as values. The first position starts at 0. The map is sorted
according to the natural ordering of the positions. If the chain is not
complete this method may return a partial list of elements.Map
that contains the elements names (values) and
their respective positions (keys).Completable.isComplete()
,
FlatChain.Builder.onComplete(FlatChain.OnCompleteFunction)