A base class for a data host that is capable to store the data and provide it as a stream or a promise.
Data type of the hosted data
Freeze the data host data. After freezing the data the data can be accessed by toStream and toPromise.
Return how many points of data this data host has.
Push data to to the data host. Data is only accepted while the data host is not frozen.
Data to add to the data host.
Set the data to use as data source. Discards old data.
New data to use.
Returns a new data host with the new batch size and same data that the original host had.
New batch size for the stream
Returns a new data host with the new interval and same data that the original host had.
New interval delay for the stream
Returns the data as a promise. Consecutive calls always return a new instance of same data.
Returns a new stream of the data that the host stores. Consecutive calls always return a new instance of same data.