T- the type of the event symbol.
public class TimeSeriesSubscriptionSymbol<T> extends IndexedEventSubscriptionSymbol<T> implements FilteredSubscriptionSymbol
symbolsRemovedwhen time-series subscription is created via
Instances of this class can be used with
DXFeedSubscription to specify subscription
for time series events from a specific time. By default, subscribing to time-series events by
their event symbol object, the subscription is performed to a stream of new events as they happen only.
TimeSeriesEvent represents a special subtype of
The source identifier of a time-series event is always zero and thus
getSource method for time-series subscription symbol always returns
FilteredSubscriptionSymbol. Time-series subscription symbols are compared based on their
eventSymbolonly. It means, that a set of time-series subscription symbols can contain at most one time-series subscription for each event symbol.
|Constructor and Description|
Creates time-series subscription symbol with a specified event symbol and subscription time.
|Modifier and Type||Method and Description|
Returns subscription time.
Returns string representation of this time-series subscription symbol.
public TimeSeriesSubscriptionSymbol(T eventSymbol, long fromTime)
eventSymbol- the event symbol.
fromTime- the subscription time.
NullPointerException- if eventSymbol is
public final long getFromTime()
public boolean equals(Object o)
trueif other object is
TimeSeriesSubscriptionSymbolwith the same
public int hashCode()
Copyright © 2002-2021 Devexperts LLC. All Rights Reserved.