T
- This is the generic type specifier which determines the class of
objects which may be stored in the stash using this stash entry
handle.public interface StashTimeSeriesEntry<T extends java.io.Serializable>
Modifier and Type | Method and Description |
---|---|
Deferred<T> |
getCurrentValue()
Accesses the data point in the time series which immediately precedes the
current system time.
|
int |
getDataBlockPeriod()
Accesses the minimum data block period which is used by the stash time
series entry.
|
int |
getDataBlockSize()
Accesses the minimum data block size which is used by the stash time series
entry.
|
Deferred<java.util.NavigableMap<java.lang.Long,T>> |
getDataPointSet()
Gets the full set of time series data points for this time series entry.
|
Deferred<java.util.NavigableMap<java.lang.Long,T>> |
getDataPointSet(long startTimestamp,
long endTimestamp)
Gets a set of time series data points over a given timestamp range.
|
Deferred<T> |
getDataPointValue(long timestamp)
Gets the time series data point associated with a given timestamp.
|
T |
getDefaultValue()
Accesses the default value for the stash time series entry.
|
java.lang.String |
getStashId()
Accesses the unique stash identifier which is associated with the stash
time series entry.
|
java.lang.String |
getStashName()
Accesses the human readable stash entry name which is associated with the
stash time series entry.
|
Deferred<java.lang.Boolean> |
setCurrentValue(T newValue)
Adds a new data point value to the time series, using the current system
time to generate the associated timestamp.
|
Deferred<java.lang.Boolean> |
setDataPointValue(long timestamp,
T newValue)
Adds a new data point value to the time series.
|
java.lang.String getStashId()
java.lang.String getStashName()
T getDefaultValue()
int getDataBlockPeriod()
int getDataBlockSize()
Deferred<T> getCurrentValue()
Deferred<T> getDataPointValue(long timestamp)
timestamp
- This is the timestamp for which the corresponding (or immediately
preceding) data point will be accessed. This includes the default
time series value which is stored with a timestamp of zero.Deferred<java.util.NavigableMap<java.lang.Long,T>> getDataPointSet()
Deferred<java.util.NavigableMap<java.lang.Long,T>> getDataPointSet(long startTimestamp, long endTimestamp)
startTimestamp
- This specifies the start of the timestamp range for which time
series data points are being retrieved. The range is inclusive of
this timestamp value. A starting timestamp value of zero will
include the default time series value at the start of the
sequence. Timestamp values less than zero are not supported.endTimestamp
- This specifies the end of the timestamp range for which time
series data points are being retrieved. The range is inclusive of
this timestamp value. The ending timestamp value must be greater
than or equal to the starting timestamp value.Deferred<java.lang.Boolean> setCurrentValue(T newValue)
newValue
- This is the new data point value which is to be committed to the
stash.Deferred<java.lang.Boolean> setDataPointValue(long timestamp, T newValue)
timestamp
- This is the timestamp associated with the new data point value. It
specifies the time at which the data point value was generated as
the integer number of milliseconds since the Unix epoch.newValue
- This is the new data point value which is to be committed to the
stash.