|
| std::shared_ptr< Builder > | withFeed (const std::shared_ptr< DXFeed > &feed) |
| | Sets the feed to attach the model to.
|
| std::shared_ptr< Builder > | withSymbol (const IndexedEventSubscriptionSymbol &symbol) |
| | Sets the symbol and the source of the model.
|
| std::shared_ptr< Builder > | withSymbol (StringParam symbol) |
| | Sets the symbol of the model.
|
| std::shared_ptr< Builder > | withSource (const EventSourceWrapper &source) |
| | Sets the source of the model (required, unless it is set with the symbol).
|
| std::shared_ptr< Builder > | withListener (EventsListener listener) |
| | Sets the listener of the model (required).
|
| std::shared_ptr< Builder > | withEventsBatchLimit (std::int32_t eventsBatchLimit) |
| | Sets the maximum number of events in a single notification of the listener (DXFeedSubscription::OPTIMAL_BATCH_LIMIT by default).
|
| std::shared_ptr< Builder > | withAggregationPeriod (const TimePeriod &aggregationPeriod) |
| | Sets the aggregation period of the events (no aggregation by default).
|
| std::shared_ptr< Builder > | withAggregationPeriod (std::chrono::milliseconds aggregationPeriod) |
| | Sets the aggregation period of the events (no aggregation by default).
|
| std::shared_ptr< Builder > | withAggregationPeriod (std::int64_t aggregationPeriod) |
| | Sets the aggregation period of the events (no aggregation by default).
|
| template<typename Executor> |
| std::shared_ptr< Builder > | withExecutor (const std::shared_ptr< Executor > &executor) |
| | Sets the executor that notifies the listener (for example, InPlaceExecutor).
|
| std::shared_ptr< IndexedEventTxModel > | build () const |
| | Builds the model and attaches it to the feed, if it is set.
|
| template<typename T> |
| bool | is () const noexcept |
| | Checks that the object is of type T: its dynamic type is T or derived from T.
|
| template<typename T> |
| std::shared_ptr< T > | sharedAs () noexcept |
| | Returns a pointer to the current object wrapped in a smart pointer to type T or std::shared_ptr<T>{nullptr} if the object is not managed by std::shared_ptr.
|
| template<typename T> |
| std::shared_ptr< T > | sharedAs () const noexcept |
| | Returns a pointer to the current object wrapped in a smart pointer to type T or std::shared_ptr<T>{nullptr} if the object is not managed by std::shared_ptr.
|
| virtual std::string | toString () const |
| | Returns a string representation of the current object.
|
|
virtual | ~Entity () noexcept |
| | The default virtual d-tor.
|
template<Derived<
IndexedEvent > E>
struct IndexedEventTxModel< E >::Builder
The builder of IndexedEventTxModel.
Each with* method changes this builder and returns it.